[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_explode_dn



De Leeuw Guy writes:

Hello,

I just build the openldap 2.1.3 and I have a small problem with the function
ldap_explode_dn
the returned value[0] is converted but i don't know which encoding is used :

It is encoded accordig to DN escaping rules for nonprintable chars;
although UTF-8 should be left as is in DNs, implementations may choose
to encode octets using the form '\'+HEXPAIR. This is the default
encoding for 2.1; you can still obtain the old behavior if you play
with ldap_str2dn/ldap_dn2str functions, which are much more flexible
than ldap_explode_dn. They are documented in section 3 of man that comes
with 2.1; their usage should be straightforward.


Regards, Pierangelo.


Dr. Pierangelo Masarati | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale | fax: +39 02 2399 8334
Politecnico di Milano | mailto:pierangelo.masarati@polimi.it
via La Masa 34, 20156 Milano, Italy | http://www.aero.polimi.it/~masarati