在AuthLDAPURL中有更多Searchfilters
在AuthLDAPURL中有多个searchfilter是否可行? 示例uidfilter: <Location /test/> AuthType Basic AuthName "Test" AuthBasicProvider ldap AuthUserFile /dev/null AuthLDAPURL ldap://example.test.com/o=test,c=com?uid AuthLDAPBindDN "******" AuthLDAPBindPassword ****** require ldap-group cn=group01,o=test,c=com </Location> 我们需要searchuid或邮件。 喜欢… AuthLDAPURL ldap://example.test.com/o=test,c=com?uid|mail 解决scheme (适用于我): 用Apache 2.4testinghttp://httpd.apache.org/docs/current/mod/mod_authn_core.html <AuthnProviderAlias ldap ldap-uid> AuthLDAPBindDN "******" AuthLDAPBindPassword ****** AuthLDAPURL "ldap://example.test.com/o=test,c=com?uid??(&(isMemberOf=cn=group01,o=test,c=com))" </AuthnProviderAlias> <AuthnProviderAlias ldap ldap-mail> AuthLDAPBindDN "******" AuthLDAPBindPassword ****** AuthLDAPURL "ldap://example.test.com/o=test,c=com?mail??(&(isMemberOf=cn=group01,o=test,c=com))" </AuthnProviderAlias> <Location "/test/"> Order deny,allow Allow […]