apache auth:LDAP 和 htpasswd 的组合

noa*_*mtm 13 svn ldap authentication apache-2.2

我们使用带有 mod_svn 的 Apache 来为 subversion 存储库提供服务。Apache 连接到 LDAP 服务器,因此所有用户都可以使用他们的域密码。为了让构建机器能够结账,我想要一个额外的用户,但我无法通过 LDAP 添加。

我可以创建一个用户/密码必须匹配 LDAP 服务器或 htpasswd 文件的设置吗?

Chr*_*ian 10

尝试这个:

AuthType Basic
AuthName "LDAP and file
AuthBasicProvider file ldap
AuthUserFile /path/to/htpassword/file
AuthLDAPBindDN <your bind dn>
AuthLDAPBindPassword <your password>
AuthLDAPURL "<your ldap url>"
AuthzLDAPAuthoritative off
Require valid-user
Satisfy any
Run Code Online (Sandbox Code Playgroud)

也许您会切换AuthBasicProvider file ldapAuthBasicProvider ldap file,这取决于您首先要搜索的位置。