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>
你好,我按照此方法。下载与VisualSVNServer.exe版本一致的httpd.exe,替换为同名文件。在没有修改httpd.conf的情况下,启动VisualSVNServer报错无法启动子进程。请问你这边有遇到这种问题么?
您好,这篇文章是个服务器配置的备份,目前只能认为这么操作是可实现的,但是具体当时如何实现的已经不记得了,您遇到的问题,可能需要您自行查看 log 或使用其他途径解决了。
VisualSVN Server Manager
VisualSVN Ltd.
版本: 2.5.25
嗯嗯,那么能麻烦您提供一下当时用的VisualSVNServer的版本么?谢谢~