LDAP query to search a group


How to search or filter groups through LDAP command?

(&(objectclass=group)(cn=CustomGroupName))

How to search or filter a group with has common name through LDAP command?

(&(objectclass=group)(cn=CustomGroupName*))

How to search or filter list of users in a group through LDAP command?

(&(objectCategory=user)(memberOf=cn=CustomGroupName,ou=OUname,dc=domain,dc=com))

Make sure you are providing full DN name. Also, if you are searching through 'Custom Search' option in AD select Domain namedont select the OU.

***Share your comments about the post***

No comments:

Post a Comment