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.