kvspb / nginx-auth-ldap

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

How do I use require_group (and where is the logging?) #144

Open funkytaco opened 8 years ago

funkytaco commented 8 years ago

How do I auth only users who are a "memberOf" CN=*ABY (ITS),OU=Groups,OU=Messaging,OU=North America,DC=example,DC=com

my URL: url "ldap://ldap.example.com/dc=example,dc=com?sAMAccountName?sub?(objectClass=person)"; my require group (doesnt work): require group "CN=*ABY (ITS),OU=Groups,OU=Messaging,OU=North America,DC=example,DC=com"

I've also tried: require group "CN=*ABY (ITS)"

Also, where are the logs? I don't see the ldap output anywhere

fpeterschmitt commented 7 years ago

Hi,

You may want to use the group_attribute member option. Is it an Active Directory?

Check the group_attribute_is_dn option too, it's off by default.

fvm2000 commented 7 years ago

I just finished getting nginx-auth-ldap up and running on RHEL7. Here are a couple of comments from the experience: