diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2015-07-18 08:57:06 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2015-07-18 08:57:06 +0200 |
| commit | 7a48019d3c9c5dbf4c10d19065d8b790ce71f55d (patch) | |
| tree | 9421790e195fac3f7c079f1b4e91af662dd971d5 /src/main/java/com/c2kernel/lookup/LDAPProperties.java | |
| parent | a6b5e09558b77ab878d61ca3d9820d62eca899c2 (diff) | |
Support timeout for LDAP connections with LDAP.timeOut property
Diffstat (limited to 'src/main/java/com/c2kernel/lookup/LDAPProperties.java')
| -rw-r--r-- | src/main/java/com/c2kernel/lookup/LDAPProperties.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/c2kernel/lookup/LDAPProperties.java b/src/main/java/com/c2kernel/lookup/LDAPProperties.java index a9ae699..19141f5 100644 --- a/src/main/java/com/c2kernel/lookup/LDAPProperties.java +++ b/src/main/java/com/c2kernel/lookup/LDAPProperties.java @@ -24,6 +24,7 @@ public class LDAPProperties public String mPassword = null;
public static String mGeneratedPassword = null;
public String mDbPath = null;
+ public int mTimeOut = 0;
public LDAPProperties()
{
@@ -35,6 +36,7 @@ public class LDAPProperties mUser = Gateway.getProperty( "LDAP.user" );
mPassword = Gateway.getProperty( "LDAP.password" );
mDbPath = Gateway.getProperty( "LDAP.dbPath" );
+ mTimeOut = Integer.valueOf(Gateway.getProperty( "LDAP.timeOut", "0"));
mRootPath += "," + mGlobalPath;
mLocalPath += "," + mRootPath;
|
