user1589608
user1589608

Reputation: 11

LDAP filter - List all the users in a specific OU

I need to display all the users in a specific OU.

I used the below filter, but it doesn't work.

(&(objectCategory=user)(ou=_Dorset,dc=andy,dc=com))

Thanks in advance.

Upvotes: 1

Views: 4181

Answers (1)

Terry Gardner
Terry Gardner

Reputation: 11132

To display all the entries subordinate to ou=_dorset, transmit a search request to the server with the following parameters:

  • base object: ou=_Dorset,dc=andy,dc=com
  • search scope: subtree
  • filter: (objectCategory=user)
  • the list of attributes to retrieve

Upvotes: 3

Related Questions