kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
735 stars 252 forks source link

nginx ldap authentication group manager #137

Open wanggaolin opened 8 years ago

wanggaolin commented 8 years ago

+--> dc=example,dc=com (2) +--> ou=Group (2) | ---> cn=t1 | ---> cn=t2 +--> ou=People (2) | ---> cn=test1 | ---> cn=test2

ldap_server exampleldap { url ldap://172.16.1.6/dc=example,dc=com?cn?sub?(objectClass=person); binddn "cn=admin,dc=example,dc=com";
binddn_passwd adminadmin;
group_attribute uniquemember; group_attribute_is_dn on; require group "cn=t3,ou=Group,dc=example,dc=com"; satisfy any; auth_ldap_satisfy all; }

Only allow group T1 login or Only allow group T1 login ,How should I set? help me!