Register / Login
Other JSE/JEE APIs
Question on JNDI SearchResult.getName()
Chicken Farmer ()
posted 14 years ago
I have the following code:
SearchControls constraints = new SearchControls( ); constraints.setSearchScope( SearchControls.SUBTREE_SCOPE ); // search for all entries NamingEnumeration results = ctx.search( LDAP_SEARCHBASE, "(sAMAccountName=" + x500_id + ")", constraints );
And later I get a
from results, and call getName() on it. Will this return the id that I searched for in the context, or will this return sAMAccountName, since that is the name of the binding (I believe it is, anyways)?
Boost this thread!
How to get list of user groups of active directory?
return false or raise exception?
Tomcat Realm JNDI problem
Problem with Return type for LDAP Search