Hi all.
I have making a JNDIRealm for LDAP connections (the JNDIRealm to have to
retrieve client certificates from LDAP). I would like to realize searches
only for Organization Unit (Organization and Country are fixed); though,
the client DN is CN - OU - OU - C (the root search for my LDAP).
The code should be as the following:
// Set up search controls.
SearchControls ctls = new SearchControls();
ctls.setSearchScope(SearchControls.SUBTREE_SCOPE);
// Perform search.
NamingEnumeration answer =
ctx.search("O=myOrganization, C=myCountry", "(ou={0})", new Object[]
{orgunit}, ctls);
orgunit = param to my JNDIRealm (e.g. myOrgUnit)
CN = indifferent
The previous code does not work (error 32 - No such object). Can somebody
help me??
Thanks and regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
