VisualSVN Server 默认不支持 LDAP 认证,使用下面方法可以为其增加 LDAP 认证方式。

操作说明

使用 Apache 官方的 httpd.exe 替换 VisualSVNServer.exe,在 bin 目录增加 ldap 插件。

在 httpd.conf 中添加下面配置:

LoadModule ldap_module bin/mod_ldap.so
LoadModule authnz_ldap_module bin/mod_authnz_ldap.so

<Location /repo/>
    DAV svn

    SVNListParentPath on
    SVNParentPath "E:/Repositories"
    SVNIndexXSLT "/svnindex.xsl"
    AuthName "VisualSVN Server"
    AuthType Basic
    AuthBasicProvider ldap
    AuthLDAPURL "ldap://ip.addr/dc=domain,dc=com?uid?sub?(objectClass=inetOrgPerson)" NONE
    AuthLDAPBindDN "uid=svn,ou=System,dc=domain,dc=com"
    AuthLDAPBindPassword "yourldappassword"
    AuthzSVNAccessFile "E:/Repositories/authz-ldap"
    require ldap-user
</Location>

相关应用下载

支持 LDAP 的 VisualSVNServer