python-ldap, modlist and base64

Jens Vagelpohl jens at dataflake.org
Fri Aug 14 13:57:20 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Aug 14, 2009, at 13:24 , Matias Surdi wrote:

> Hi!
>
> I'm wondering if there is any example or documentation on how to add
> or modify ldap objects whose values contains non-ascii characters,
> such as accents, and so on. As far as I understand, those values
> should be encoded using base64, but if I do that, I don't know how to
> indicate in the modlist that this is the encoded value and not the
> value itself.

You do not have to base64-encode the values. Make sure they are UTF-8,  
and it should work just fine.

jens



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkqFUSAACgkQRAx5nvEhZLLOFgCfULPkkbO0hT/jV4m2DRZKBhX5
ACYAnRYhS3JBcK9V7WZAy4zoORNemO1T
=s+nu
-----END PGP SIGNATURE-----




More information about the python-ldap mailing list