这里有一个问题。 我有一个域名(AD),我需要通过ADloginSVN用户。
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不工作,如果你解释我,我会心怀感激。