使用Apache和Subversion提供服務,並透過Active Directory驗證帳號和密碼,在安裝Apache時要WITH_LDAP_MODULES=yes。

<Location /repos>
  DAV svn
  SVNParentPath  /usr/home/svn/repos/
  AuthzSVNAccessFile /usr/home/svn/access
  AuthBasicProvider ldap
  AuthzLDAPAuthoritative on
  AuthLDAPURL "ldap://zbwei.net/DC=zbwei,DC=net?sAMAccountName?sub?(objectClass=user)"
  AuthLDAPBindDN forth@zbwei.net
  AuthLDAPBindPassword 1qaz2wsx
  AuthType Basic
  AuthName "Subversion Repository"
  Require valid-user
</Location>
創作者介紹
創作者 不就是個blog 的頭像
Forth

不就是個blog

Forth 發表在 痞客邦 留言(0) 人氣( 171 )