diff --git a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/CasaIdentityToken.java b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/CasaIdentityToken.java index 93df011b..87f4b34d 100644 --- a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/CasaIdentityToken.java +++ b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/CasaIdentityToken.java @@ -737,7 +737,7 @@ public final class CasaIdentityToken implements IdentityToken { // Open a directory context and use it to read the identity attributes. Hashtable env = new Hashtable(); - env.put("com.sun.jndi.ldap.connect.timeout", 15000); // Override default LDAP timeout + env.put("com.sun.jndi.ldap.connect.timeout", "15000"); // Override default LDAP timeout env.put(Context.INITIAL_CONTEXT_FACTORY, "org.bandit.ia.IAInitialCtxFactory"); env.put(Realm.REALM_CONFIG_LOCATION, svcConfig.getSetting(SvcConfig.IdentityAbstractionConfigFile)); env.put(Realm.REALM_SELECTOR, sourceName); diff --git a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/Krb5Authenticate.java b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/Krb5Authenticate.java index cb9112aa..48027c13 100644 --- a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/Krb5Authenticate.java +++ b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/Krb5Authenticate.java @@ -208,7 +208,7 @@ public final class Krb5Authenticate implements AuthMechanism, Serializable // Open a directory context and use it to identify the users // associated with the specified surname. Hashtable env = new Hashtable(); - env.put("com.sun.jndi.ldap.connect.timeout", 15000); // Override default LDAP timeout + env.put("com.sun.jndi.ldap.connect.timeout", "15000"); // Override default LDAP timeout env.put(Context.INITIAL_CONTEXT_FACTORY, "org.bandit.ia.IAInitialCtxFactory"); env.put(Realm.REALM_CONFIG_LOCATION, m_svcConfig.getSetting(SvcConfig.IdentityAbstractionConfigFile)); env.put(Realm.REALM_SELECTOR, authReqMsg.getRealm()); diff --git a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/PwdAuthenticate.java b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/PwdAuthenticate.java index 8d2ad028..461176be 100644 --- a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/PwdAuthenticate.java +++ b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/PwdAuthenticate.java @@ -183,7 +183,7 @@ public final class PwdAuthenticate implements AuthMechanism, Serializable // Open a directory context and use it to identify the users // associated with the specified surname. Hashtable env = new Hashtable(); - env.put("com.sun.jndi.ldap.connect.timeout", 15000); // Override default LDAP timeout + env.put("com.sun.jndi.ldap.connect.timeout", "15000"); // Override default LDAP timeout env.put(Context.INITIAL_CONTEXT_FACTORY, "org.bandit.ia.IAInitialCtxFactory"); env.put(Realm.REALM_CONFIG_LOCATION, m_svcConfig.getSetting(SvcConfig.IdentityAbstractionConfigFile)); env.put(Realm.REALM_SELECTOR, authReqMsg.getRealm()); @@ -207,6 +207,7 @@ public final class PwdAuthenticate implements AuthMechanism, Serializable catch (Exception e) { m_log.warn("invoke(): Exception caught instantiating DirContext, msg = " + e.getMessage()); + m_log.debug("invoke(): Exception caught instantiating DirContext", e); // Stop retrying break; @@ -273,7 +274,7 @@ public final class PwdAuthenticate implements AuthMechanism, Serializable try { Hashtable env2 = new Hashtable(); - env2.put("com.sun.jndi.ldap.connect.timeout", 15000); // Override default LDAP timeout + env2.put("com.sun.jndi.ldap.connect.timeout", "15000"); // Override default LDAP timeout env2.put(Context.INITIAL_CONTEXT_FACTORY, "org.bandit.ia.IAInitialCtxFactory"); env2.put(Realm.REALM_CONFIG_LOCATION, m_svcConfig.getSetting(SvcConfig.IdentityAbstractionConfigFile)); env2.put(Realm.REALM_SELECTOR, authReqMsg.getRealm()); diff --git a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java index d313ab69..2c10f377 100644 --- a/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java +++ b/CASA-auth-token/server-java/Svc/src/com/novell/casa/authtoksvc/RealmsInfo.java @@ -215,7 +215,7 @@ public class RealmsInfo // users attribute which theoretically should only be valid on an AD // server. Hashtable env = new Hashtable(); - env.put("com.sun.jndi.ldap.connect.timeout", 15000); // Override default LDAP timeout + env.put("com.sun.jndi.ldap.connect.timeout", "15000"); // Override default LDAP timeout env.put(Context.INITIAL_CONTEXT_FACTORY, "org.bandit.ia.IAInitialCtxFactory"); env.put(Realm.REALM_CONFIG_LOCATION, realmConfigFilePath); env.put(Realm.REALM_SELECTOR, realm.getId());