[python-ldap] Can i check if the group exist in active directory using python ldap
Sebastian Wiesner
sebastian.wiesner at tu-dresden.de
Fri Sep 9 08:48:48 EDT 2016
Sorry, forgot to provide some python sample code:
my_ldap = ldap.initialize('ldap://ldap.example.org:389')
my_ldap.simple_bind_s('cn=Manager,dc=ldap,dc=example,dc=org',
'your_ldap_password')
my_ldap.search_s('dc=ldap,dc=example,dc=org', ldap.SCOPE_SUBTREE,
filterstr=(&(ou:dn:=Group)(cn=SampleGroup)))
Kind regards
Am 09.09.2016 um 13:20 schrieb Robert Clove:
>
> Hi,
>
> Is it possible in python using ldap module to verify if the
>
> Group exist in active directory
> user in group exist
>
> Can some one provide me with the sample code.
>
>
>
> _______________________________________________
> python-ldap mailing list
> python-ldap at python.org
> https://mail.python.org/mailman/listinfo/python-ldap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20160909/7c21b063/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5157 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20160909/7c21b063/attachment-0001.bin>
More information about the python-ldap
mailing list