[svnbook] r5730 committed - branches/1.8/zh/book/ ch06-server-configuration.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Mon Jul 23 10:05:20 CDT 2018


Revision: 5730
          http://sourceforge.net/p/svnbook/source/5730
Author:   wuzhouhui
Date:     2018-07-23 15:05:18 +0000 (Mon, 23 Jul 2018)
Log Message:
-----------
1.8/zh: translation of chapter 6 in progress

Modified Paths:
--------------
    branches/1.8/zh/book/ch06-server-configuration.xml

Modified: branches/1.8/zh/book/ch06-server-configuration.xml
===================================================================
--- branches/1.8/zh/book/ch06-server-configuration.xml	2018-07-14 09:38:32 UTC (rev 5729)
+++ branches/1.8/zh/book/ch06-server-configuration.xml	2018-07-23 15:05:18 UTC (rev 5730)
@@ -3612,6 +3612,7 @@
         </listitem>
       </itemizedlist>
 
+      <!--
       <para>Of course, you might have already set up
         a pre-commit hook script to prevent
         commits (see <xref linkend="svn.reposadmin.hooks" />).
@@ -3618,8 +3619,14 @@
         But as you read on, you'll see that it's also possible to use
         Apache's built-in methods to restrict access in specific
         ways.</para>
+      -->
+      <para>当然, 你可能已经设置好了一个 pre-commit 钩子, 以便阻止那些不符合
+        要求的提交 (见 <xref linkend="svn.reposadmin.hooks" />). 但是如果你接
+        着读下去, 就会发现其实我们还可以使用 Apache 的内建机制, 以一种特定
+        的方式来限制访问.</para>
 
       <tip>
+      <!--
         <para>Requiring authentication defends against invalid users
           directly accessing the repository, but does not guard the
           privacy of valid users' network activity.  See
@@ -3626,12 +3633,21 @@
           <xref linkend="svn.serverconfig.httpd.ssl"/> for how to
           configure your server to support SSL encryption, which can
           provide that extra layer of protection.</para>
+      -->
+        <para>认证可以阻止无效的用户直接访问仓库, 但是它无法保护有效用户
+          的网络流量的隐私. 为服务器配置 SSL 加密, 可以为用户添加额外的一层
+          保护, 关于如何配置, 见 <xref linkend="svn.serverconfig.httpd.ssl"/>.
+        </para>
       </tip>
 
       <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
       <sect3 id="svn.serverconfig.httpd.authn.basic">
+      <!--
         <title>Basic authentication</title>
+      -->
+        <title>基础认证</title>
 
+      <!--
         <para>The easiest way to authenticate a client is via the HTTP
           Basic authentication mechanism, which simply uses a username
           and password to verify a user's identity.  Apache provides
@@ -3639,6 +3655,12 @@
           <ulink url="http://httpd.apache.org/docs/current/programs/htpasswd.html"
           />.</para></footnote> for managing files containing
           usernames and passwords.</para>
+      -->
+        <para>对客户端进行认证的最简单的方式是使用 HTTP Basic 认证机制, 它
+          仅仅是使用用户名与密码验证用户的身份. Apache 提供了命令行工具
+          <command>htpasswd</command><footnote><para>见
+              <ulink url="http://httpd.apache.org/docs/current/programs/htpasswd.html"
+                />.</para></footnote> 来管理包含用户名与密码的文件.</para>
 
         <warning>
           <para>Basic authentication is <emphasis>extremely</emphasis>




More information about the svnbook-dev mailing list