[python-ldap] Bind with non-ascii DN

Cornelius Kölbel cornelius.koelbel at lsexperts.de
Thu Jul 4 23:01:16 CEST 2013


Hi Michael,

some encoding of the BindDN and BindPW did the trick.
Thanks a lot and kind regards
Cornelius

Am 01.07.2013 23:08, schrieb Michael Ströder:
> Cornelius Kölbel wrote:
>> I have DNs with unsafe characters and other non-ascii characters.
>> Is it possible to do the bin with the base64 encoded DN?
> LDAPv3 defines UTF-8 based string encoding for DNs in RFC 4514 and python-ldap
> happily sends that to the server.
> Note that you have to do the s.decode('utf-8') in your code which calls
> python-ldap functions/methods.
>
> Ciao, Michael.
>


-------------- 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/20130704/56612a9c/attachment.pgp>


More information about the python-ldap mailing list