In <mailman.80.1473414113.2411.python-l...@python.org> Robert Clove 
<cloverob...@gmail.com> writes:

> I want to find if the particular group exist in my active directory

Search on the group's DN, specifying SCOPE_BASE as the search scope.  If
you get a result, then the group exists, otherwise it doesn't.

> also another function to find the user in a particular group

Do the same search as above, returning the "member" attribute.  Get
the search result and then inspect the list of returned members.

-- 
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

Reply via email to