adding binary attribute using python-ldap
Michael Ströder
michael at stroeder.com
Wed Mar 19 19:01:25 CET 2008
Rahul Amaram wrote:
> I was wondering if there is any way I can add binary data (such as
> jpegPhoto and userCertificate) using python-ldap. I've googled but
> coudn't find any solution. If there is no way of doing it, what is the
> best alternative solution?
There's simply no difference. Note that normal strings are binary buffers in
Python 2.x anyway. Since python-ldap does not treat Unicode objects
differently at the moment any attribute value passed to a LDAPObject method
is passed on in LDAP requests as is.
Ciao, Michael.
More information about the python-ldap
mailing list