I'm trying to get a connection to a LDAP server through JNDI.
I don't need the LDAPContext as a true JNDI context and store objects, but I do want to change LDAP entries, like user attributes.
I regard the LDAP connection as a "DataSource" (which differs in a
test or production system).
Where in WAS5 do I create such an entry? I've tried putting it in
"Resource Environment Providers", but can't use it.
In my code, I'd like to do something like
InitialContext initialCtx = new InitialContext();
LdapContext ctx = (LdapContext)initialCtx.lookup("ldap/myserver");
ctx.getAttributes("");
...
So the JNDI name "ldap/myserver" is a LDAP connection, not the initialcontext. The initial context is WAS's.
Every example I find is about how to put the JNDI context as LDAP. I guess I could do that, but how would I add that in WAS?
Regards,
/Tom