Ldap – Apache multiple ldap groups

apache-2.2groupsldap

I am configuring Apache to authenticate against LDAP and require multiple groups to be present. I have done this with require statements, however I need the authentication to be successful if all groups are there and not just one. How do I tell Apache to go through all require statements?

Best Answer

You cold try the "Satisfy" apache directive, e.g.: satisfy all.

Otherwise you could modify your filter to require the groups, e.g. (&(ou=foo)(ou=bar))