Local OIM Client Connection code

public OIMClient getAdminConnection() {
logger.debug("--- getAdminConnection started ----");
OIMClient oimClient = null;
try {
System.setProperty("java.security.auth.login.config", ABS_PATH_TO_authwl.conf_IN_DESIGN_CONSOLE);
System.setProperty("APPSERVER_TYPE", "wls");
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL, "weblogic.jndi.WLInitialContextFactory");
env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://HOSTNAME:14000");
oimClient = new OIMClient(env);
logger.debug("Establishing OIM connection");
oimClient.login(ADMIN_USER_LOGIN, ADMINPASSWORD.toCharArray());
logger.debug("OIM connection established");

} catch (LoginException e) {
e.printStackTrace();
}
logger.debug("--- getAdminConnection completed ----");
return oimClient;
}

Comments

Popular posts from this blog

Rules in Sailpoint

Sailpoint Installation Steps (IdentityIQ 7.3 Installation in Windows Machine)

How to create provisioning plan in Sailpoint