[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: How can I add non-ascii dn entry to ldap using netscape java sdk?
james writes:
> base64DN = Base.encode(dn.getBytes("UTF8"));
Do not base64-encode the DN. (Or anything else you send over LDAP, for
that matter.)
It's the LDIF file format base64-encodes UTF-8 strings (among other
things), but this is just so that LDAP values can be represented in that
format. Applications that read LDIF files must base64-decode such
values before sending them over the LDAP protocol.
--
Hallvard