2006年12月5日
centos 4.4 svn使用ldap管理帳號
因為redhat企業版有修改了ldap跟apache的認證相關參數,所以一般網路上查到的都不太能用,以下是我試過ok的參數
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthzLDAPMethod ldap
AuthName "Authorization Realm"
AuthzLDAPServer 127.0.0.1
AuthzLDAPUserBase ou=rd,dc=test,dc=com
AuthzLDAPUserKey cn
Require valid-user
</Location>
整個重點是在於AuthzLDAPUserBase跟AuthzLDAPUserKey
以我的範列來說,送出的字就是 cn=<你輸入的帳號>,ou=rd,dc=test,dc=com
錯誤記錄的log檔為 $apache_folder/log/error.log
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthzLDAPMethod ldap
AuthName "Authorization Realm"
AuthzLDAPServer 127.0.0.1
AuthzLDAPUserBase ou=rd,dc=test,dc=com
AuthzLDAPUserKey cn
Require valid-user
</Location>
整個重點是在於AuthzLDAPUserBase跟AuthzLDAPUserKey
以我的範列來說,送出的字就是 cn=<你輸入的帳號>,ou=rd,dc=test,dc=com
錯誤記錄的log檔為 $apache_folder/log/error.log
引用URL
http://cgi.blog.roodo.com/trackback/2548193