Hi All,
I recently upgraded my appliance from ISVA10.0.3.1 to ISVA10.0.4.0 IF1.
After this upgrade I experience issues with the UserLookupHelper.
I am using the following function to initialize the UserLookupHelper
function initUserLookupHelper(mgmtDomain) {
var fn = "initUserLookupHelper()";
logmsg(TRACE,fn+" Entering");
if (mgmtDomain === undefined) {
mgmtDomain = "";
}
if (mgmtDomain == "") {
mgmtDomain = "Default";
}
var prps = new java.util.Properties();
prps.put("ldap.enable-last-login","true");
prps.put("ldap.login-failures-persistent","true");
var ulh = new UserLookupHelper();
if(mgmtDomain=="Default") {
//Init with our ISAM RTE username/password config
logmsg(DEBUG,fn+" Initialise User Lookup Helper using RTE config.");
ulh.init(false, prps);
} else {
//Init with our serverconnection config
var connName = "isam-ldap";
var ldapConnection = ServerConnectionFactory.getLdapConnectionByName(connName);
if(ldapConnection==null) {
logmsg(FATAL,fn+" LdapConnection not found: "+connName);
} else {
var ldapServer = ldapConnection.getHost(0);
var ldapBindDn = ldapServer.getBindDn();
var ldapBindPwd = ldapServer.getBindDnPwd();
var ldapHostname = ldapServer.getHostname();
var ldapPort = ldapServer.getPort();
var ldapKeystore = ldapServer.getKeystore();
var ldapTimeout = 10;
logmsg(DEBUG,fn+" Initialise User Lookup Helper using LdapConnection "+connName+" and Management Domain: "+mgmtDomain);
ulh.init(ldapHostname, ldapPort, ldapBindDn, ldapBindPwd, ldapKeystore, null, "(|(objectclass=ePerson)(objectclass=Person))", mgmtDomain, ldapTimeout, true, prps);
}
}
return ulh;
}
I use this sequence to recreate the issue:
In the first call to my infomap script I initialize the UserLookupHelper with mgmtDomain=Default
var hlpr = initUserLookupHelper("Default");
subsequent calls like below all work
var user = hlpr.getUser(username);
In a second call to my infomap script I initialize the UserLookupHelper with mgmtDomain=employee
var hlpr = initUserLookupHelper("employee");
subsequent calls like below do not work
var user = hlpr.getUser(username);
This behaviour is only experienced afte the upgrade to ISVA10.0.4.0 IF1.
Does anyone know what is going on here?
Regards,
Paul van den Brink
------------------------------
Paul van den Brink
------------------------------