[python-ldap] Connection to Active Directory

Elias Probst mail at eliasprobst.eu
Fri Nov 15 21:25:57 CET 2013


On 15.11.2013 18:13, Gustavo Gómez wrote:
> Hello, I am trying to authenticate against an Active Directory. If I
> use a tool like Apache Directory Studio it works if I pass as the user
> the string "DOMAIN\myuser", but I need to know how can I can connect
> using Python. It does not work if I use "cn=myuser,dc=domain,dc=com".
>
> On Python, if I pass "DOMAIN\myuser" I get: ldap.FILTER_ERROR:
> {'desc': 'Bad search filter'}

Simply try user at domain

- Elias


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20131115/51ef5b74/attachment.sig>


More information about the python-ldap mailing list