Alex Karasulu wrote:
If you have an LdapDN instance that you got back then just do a
getUpName().  This returns the user provided form of the attributeType
alias.
That's not exactly true. The getUpName() method just returns the User Provider _if_ the initial DN was already using the alias (ie, if you have a dn: ou=test, then doing a dn.getupName() will give you back ou=test, when dn.getNormName will give you back 2.5.4.11=test)

But if the original form was 2.5.4.11=test, then getUpName will return the exact same thing, 2.5.4.11=test.

Otherwise, the methods Alex gave you are the correct way to do the conversion, AFAIK.

--
--
cordialement, regards,
Emmanuel Lécharny
www.nextury.com
directory.apache.org


Reply via email to