svn+ apache + ldap 配置

來源:互聯網
上載者:User

標籤:

svn+ apache + ldap 配置:
<Location />  # Uncomment this to enable the repository  DAV svn  # Set this to the path to your repository  #SVNPath /var/lib/svn  # Alternatively, use SVNParentPath if you have multiple repositories under  # under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).  # You need either SVNPath and SVNParentPath, but not both.  SVNParentPath /opt/svn  # Access control is done at 3 levels: (1) Apache authentication, via  # any of several methods.  A "Basic Auth" section is commented out  # below.  (2) Apache <Limit> and <LimitExcept>, also commented out  # below.  (3) mod_authz_svn is a svn-specific authorization module  # which offers fine-grained read/write access control for paths  # within a repository.  (The first two layers are coarse-grained; you  # can only enable/disable access to an entire repository.)  Note that  # mod_authz_svn is noticeably slower than the other two layers, so if  # you don‘t need the fine-grained control, don‘t configure it.  # Basic Authentication is repository-wide.  It is not secure unless  # you are using https.  See the ‘htpasswd‘ command to create and  # manage the password file - and the documentation for the  # ‘auth_basic‘ and ‘authn_file‘ modules, which you will need for this  # (enable them with ‘a2enmod‘).  AuthType Basic  AuthName "Subversion Repository"  #AuthUserFile /etc/apache2/dav_svn.passwd  # To enable authorization via mod_authz_svn  AuthzSVNAccessFile /etc/apache2/dav_svn.authz#------------------------ldap配置------------------------------------------  # 在ldap找不到帳號的情況下可以使用其它的認證方式(如,密碼檔案)  AuthzLDAPAuthoritative off    # openLDAP的管理賬戶   AuthLDAPBindDN "cn=admin,dc=zdy,dc=org"  AuthLDAPBindPassword admin  AuthBasicProvider ldap  # 認證資料來源:"dc=zdy,dc=org" 下所有子entity的uid作為認證使用者名稱  AuthLDAPURL "ldap://192.168.2.209:389/dc=zdy,dc=org?uid?sub?(objectClass=*)"  # 設定目錄許可權,實現列表所有工程目錄   Options Indexes FollowSymLinks  Order allow,deny  Allow from all#--------------------------------------------------------------------  # The following three lines allow anonymous read, but make  # committers authenticate themselves.  It requires the ‘authz_user‘  # module (enable it with ‘a2enmod‘).  #<LimitExcept GET PROPFIND OPTIONS REPORT>    Require valid-user  #</LimitExcept> </Location>



svn+ apache + ldap 配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.