svn授权通过ldap / AD

这里有一个问题。 我有一个域名(AD),我需要通过ADloginSVN用户。

  • DC:10.20.3.30
  • Svn服务器在freebsd上,它不在域中
  • Apache 2.4
  • AD读取用户:OU SVN中的“svnr”。
  • Svnr用户testing,并可以login到域。
  • Apache加载的模块:mod_ldap,mod_authnz_ldap,mod_authz_svn,mod_dav_svn
  • 在相同的服务器lighsquid通过NET :: LDAP从AD读取用户。

Svn使用文件身份validation。 正好。 如果我尝试login与任何域用户拒绝和Apache日志显示“密码不匹配”。

httpd-vhosts.conf <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/usr/local/www/svn" ServerName svn ServerAlias svn.domain.ru ErrorLog "/var/log/svn.error.log" CustomLog "/var/log/svn.access.log" common <Location /> DAV svn SVNParentPath /usr/local/www/svn SVNListParentPath on AuthType Basic AuthName "SVN Server" AuthBasicProvider ldap AuthLDAPURL "ldap://10.20.3.30:389/DC=domain,DC=ru?sAMAccountName?sub?(objectClass=*)" NONE AuthLDAPBindDN "CN=svnr,OU=SVN,DC=domain,DC=ru" AuthLDAPBindPassword 123 Require valid-user </Location> </VirtualHost> 

如果我尝试使用ldapsearch我得到这个:

 ldapsearch -h 10.20.3.30 -D "CN=svnr,OU=SVN,DC=domain,DC=ru" -b "dc=domain,dc=ru" -x -W Enter LDAP Password: ldap_bind: Invalid credentials (49) additional info: 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1 

debuggingldapsearch -d5 http://pastebin.com/myP0Y88m

感谢帮助!


好吧,我做了它,我改变了CN=svnr,OU=SVN,DC=domain,DC=ru [email protected][email protected] ,它的工作原理,我不知道为什么以前的configuration不工作,如果你解释我,我会心怀感激。