Identity Management (MOSC)

MOSC Banner

Help! Need to add LDAP search to OAM Plugin!

edited Nov 2, 2017 5:00AM in Identity Management (MOSC) 2 commentsAnswered

Hi,

I am working on an OAM plugin, and this plugin needs to be able to do an LDAP search that is independent of the OAM identity stores, so I think that I need to use JNDI to do that.

So, as a starter, I added a small method to the plugin to do a simple LDAP search, and the plugin compiles and builds all right, and I can activate the plugin and add it to an authen module.

private static String SearchLdap(String ldapUrl) {

    Properties properties = new Properties();

    properties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center