In <mailman.144.1473684507.2411.python-l...@python.org> Robert Clove <cloverob...@gmail.com> writes:
> 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)) > The above query doesn't work fine even if group doesn't exist, > It always says that user is member of The query returns a user who is not a member of the named group? That's odd. What is the search base and scope? -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.python.org/mailman/listinfo/python-list