mirror of
https://github.com/apache/httpd.git
synced 2026-10-23 22:49:01 +03:00
test simple ldap-search provider usage
Submitted by: Eric Covener <ecovener@us.ibm.com> Github: closes #714 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937459 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -883,6 +883,7 @@ LimitRequestFields 32
|
||||
Alias /modules/ldap/simple @DocumentRoot@
|
||||
Alias /modules/ldap/group @DocumentRoot@
|
||||
Alias /modules/ldap/refer @DocumentRoot@
|
||||
Alias /modules/ldap/search @DocumentRoot@
|
||||
|
||||
# Simple user lookup
|
||||
<Location /modules/ldap/simple>
|
||||
@@ -915,6 +916,14 @@ LimitRequestFields 32
|
||||
AuthBasicProvider ldap
|
||||
Require ldap-group cn=Subgroup,ou=dept,dc=example,dc=com
|
||||
</Location>
|
||||
# ldap-search
|
||||
<Location /modules/ldap/search>
|
||||
AuthLDAPURL "ldap://localhost:8389/dc=example,dc=com?uid"
|
||||
AuthLDAPBindDN "cn=httpd,dc=example,dc=com"
|
||||
AuthLDAPBindPassword mod_authnz_ldap
|
||||
Require ldap-search cn=Subgroup
|
||||
</Location>
|
||||
|
||||
</IfDefine>
|
||||
|
||||
##
|
||||
|
||||
@@ -26,6 +26,7 @@ CASES = [
|
||||
("/modules/ldap/group/", "delta", "Delta", 200),
|
||||
("/modules/ldap/refer/", "alpha", "Alpha", 401),
|
||||
("/modules/ldap/refer/", "beta", "Beta", 200),
|
||||
("/modules/ldap/search/", "unchecked", "unchecked", 200),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user