The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

get the DN of a certain Dircontext

Posted by digido on June 26, 2001 at 7:12 PM


With JAVA it oges like this:
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;
// ...
ctx.getNameInNamespace();

For the other attributes use the BasicAttribute class which are also available in the JNDI...

You could also do it with PHP... but this is a JAVA forum ;))






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us