Help! Need to add LDAP search to OAM Plugin!
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");