directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel L├ęcharny <elecha...@gmail.com>
Subject Re: [ApacheDS] is there an easy function to convert OIDs?
Date Mon, 11 Aug 2008 23:42:55 GMT
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



Mime
View raw message