Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LDAP connection within Java to OID

OldGuyJul 1 2011 — edited Jul 4 2011
This 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...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2011
Added on Jul 1 2011
7 comments
361 views