Re: ldap or active directory module

2016-09-09 Thread John Gordon
In  Robert Clove 
 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


Re: ldap or active directory module

2016-09-09 Thread Shyam Parimal Katti
Sure, have you tried it and failed?

I remember using this: https://www.python-ldap.org/docs.html  year back and
was able to do many operations including lookups.

On Fri, Sep 9, 2016 at 5:41 AM, Robert Clove <cloverob...@gmail.com> wrote:

> Is it possible to find the following things using python ldap or active
> directory module
> I want to find if the particular group exist in my active directory also
> another function to find the user in a particular group
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


ldap or active directory module

2016-09-09 Thread Robert Clove
Is it possible to find the following things using python ldap or active
directory module
I want to find if the particular group exist in my active directory also
another function to find the user in a particular group
-- 
https://mail.python.org/mailman/listinfo/python-list