memberof example using ldap
Robert Clove
cloverobert at gmail.com
Mon Sep 12 08:48:24 EDT 2016
Hi,
I have to find if user is the member of a group, for this i am using the
following query
(&(objectClass=user)(sAMAccountName=yourUserName)
(memberof=CN=YourGroup,OU=Users,DC=YourDomain,DC=com))
(memberof=CN=YourGroup,OU=Users,DC=YourDomain,DC=com)== values from
distinguished name of your group
The above query doesn't work fine even if group doesn't exist,
It always says that user is member of
More information about the Python-list
mailing list