Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LDAP filter syntax not working using when using groups search filter

LDAP filter syntax is not working when I am using groups. I can filter to the OU level, but not when using groups nested inside that OU.

User Base DN looks like this:

cn=users,cn=accounts,dc=domain,dc=local

Search scope is "Search whole subtree below Base DN"

Group Base DN is:

cn=groups,cn=accounts,dc=domain,dc=local

My Search Filter is

(&(objectclass=groups)(cn=my_users))

I'm using OpenLDAP as the LDAP back-end. When executing the query I am getting "No groups found" when I know the group exists. I've researched and reviewed my syntax over and over again and still getting the same error. Any help?

like image 780
Kim Lee Avatar asked Mar 18 '26 08:03

Kim Lee


1 Answers

Search Filter is wrong. Use instead:

(&(objectclass=groupOfNames)(cn=my_users))

like image 52
T-Heron Avatar answered Mar 23 '26 12:03

T-Heron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!