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


Reply via email to