LDAP configuration with groups and users in different OU

PES-Project-Owner January 15, 2018

Hello,

The configuration of my Mycrosoft AD is the following:

  • Users: OU=user,DC=Example,DC=com
  • Different groups1: OU=groups1,DC=Example,DC=com
  • Different groups2: OU=groups2,DC=Example,DC=com

I would like to filter just the users who are in the different groups1 using the OU but I get an error doing the following:

(&(objectClass=user)(sAMAccountName=*)(memberOf=ou=groups1,dc=Example,dc=com))

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 6, 2022

Hi @PES-Project-Owner ,

please take a look to the following article : https://confluence.atlassian.com/kb/how-to-write-ldap-search-filters-792496933.html

You should use the following sintax :

This will only synchronize users in the 'CaptainPlanet' group

(&(objectCategory=Person)(sAMAccountName=*)(memberOf=cn=CaptainPlanet,ou=users,dc=company,dc=com))

Hope this helps,

Fabio

Suggest an answer

Log in or Sign up to answer