[python-ldap] Can i check if the group exist in active directory using python ldap

Michael Ströder michael at stroeder.com
Fri Sep 9 10:41:30 EDT 2016


Sebastian Wiesner wrote:
> Yes, I know. But thank you for pointing this out though. To use
> objectClass=group would not work in my case, but using part of the DN would.

Why not? If you know the complete (unique) group name using the filter
(&(objectClass=group)(cn=<group name>))
should always return this particular group.

> It all depends on how the actual directory is set up.

Please elaborate on why the filter above does not work in your case.

Ciao, Michael.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20160909/edb3510c/attachment.bin>


More information about the python-ldap mailing list