directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: [ApacheDS] is there an easy function to convert OIDs?
Date Mon, 11 Aug 2008 18:01:05 GMT
Hammond, Steve wrote:
> I have java code interfacing with ADS by calling
> PartitionNexusProxy.search(searchOpContext).  Most DN's come back
> "readable".  But sometimes some of them come back with OIDs (I think
> that is normalized?)
>
>  
>
> I have a dn 2.5.4.11=local,2.5.4.11=users
>
> Is there an existing function that can translate that to
> ou=local,ou=users?
>   

if you have your DN stored into a LdapDN object, then assuming you have 
access to the registries :

dn.normalize( 
registries.getAttributeTypeRegistry().getNormalizerMapping() );


That should do the trick.


-- 
--
cordialement, regards,
Emmanuel L├ęcharny
www.iktek.com
directory.apache.org



Mime
View raw message