LDAP connection within Java to OID
OldGuyJul 1 2011 — edited Jul 4 2011This may not be the correct forum, but it is involvoing Identity Management so here goes...
In creating an login screen that authenticates against OID, how do we pass the principal password when connecting to OID? What I see when I search on this subject is something like the following:
Hashtable env = new Hashtable();
env.put(javax.naming.Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
env.put(javax.naming.Context.SECURITY_PRINCIPAL, username);
env.put(javax.naming.Context.SECURITY_CREDENTIALS, password);
env.put(javax.naming.Context.SECURITY_AUTHENTICATION, ServiceCtx.SSL_LOGIN);
Context ic = new InitialContext(env);
This requires that that the password be a String. Does anyone know how to pass this information to connect to OID (ldap) with either not having to hardcode the password or at least passing it in an encrypted format?
We are currently using:
RHEL 5.6
WLS 10.3.2
Identity Management 11g (11.1.1.2)
Thank you...