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 -- https://mail.python.org/mailman/listinfo/python-list