When using JNDI with LDAP, how can I get the DN (Distinguished Name) from a DirContext?

Fdo J. Rendón Quiles

If you get the DN for a DirContext you have to use the method, getNameInNamespace(). This method retrieves the full name of this context within its own namespace. For example:

DirContext ctx;
// ...
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact