LDAP query to retrieve members of a group

ldap

I know this question has been asked a few times already but I'm still at a loss 🙁

What I want to do is pass a security group name to an LDAP query and list out all the users who are a memberof. Am I right in understand that all that's required is to pass in the group's distinguished name, as follows? For some reason, the query is returning a blank.

(&(objectCategory=user)(memberOf={group distinguished name}))

Best Answer

Thanks for the replies. My query was correct! The reason I wasn't receiving users is that there weren't any in the security group - despite the fact that network admin claimed there were.

Related Topic