我在 Ubuntu 10.04 上使用了 svnserve 解决方案,用于通过 SASL 将 svn 用户授权到 Active Directory(LDAP,而不是 LDAPDB)。配置文件在底部。
将服务器升级到 12.04 版本后,这不再起作用。我可以通过 SASL 向 LDAP 授权用户
testsaslauthd -u ldap_username -p his_password
=> 0: OK "Success."
Run Code Online (Sandbox Code Playgroud)
但是当我尝试在同一服务器上的文件夹上“svn update”时,它会问我三遍凭据并以
svn: Authentication error from server: SASL(-4): no mechanism available:
Run Code Online (Sandbox Code Playgroud)
我不知道如何跟踪 svn 和 sasl 之间的通信。
文件 /usr/lib/sasl2/svn.conf
pwcheck_method: saslauthd
auxprop_plugin: ldap
mech_list: PLAIN
Run Code Online (Sandbox Code Playgroud)
文件 /usr/lib/sasl2/subversion.conf -> 符号链接到 /usr/lib/sasl2/svn.conf
文件 /opt/svn/repos/conf/svnserve.conf
[general]
anon-access = …Run Code Online (Sandbox Code Playgroud)