memberof example using ldap
John Gordon
gordon at panix.com
Mon Sep 12 11:39:01 EDT 2016
In <mailman.144.1473684507.2411.python-list at python.org> Robert Clove <cloverobert at 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
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list