[python-ldap] Auto encoding of binary fields

Michael Ströder michael at stroeder.com
Sat May 13 04:23:02 EDT 2017


Ritesh Nadhani wrote:
> Using ldapsearch, it seems it autoencodes non printable attribute
> value into something that is more printable on console.
> 
> Is there any flag with python-ldap package that can do the same?

The ldapsearch command-line outputs LDIF (see RFC 2849):
https://tools.ietf.org/html/rfc2849

The module ldif can be used to do the same:
https://www.python-ldap.org/doc/html/ldif.html

Ciao, Michael.

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


More information about the python-ldap mailing list