summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2014-07-22 12:21:42 +0200
committerAndrew Branson <andrew.branson@cern.ch>2014-07-22 12:21:42 +0200
commited8037772d068c49800fb4f88697d1f818031120 (patch)
treeb3affa76c7800671823a1a1c02c6a2e88d628254
parent4dabc88d393ea35e36a41b6b98fe08053e81752a (diff)
Move init code to open() in case instantiation is done outside the
Gateway and the props aren't ready yet
-rw-r--r--src/main/java/com/c2kernel/lookup/ldap/LDAPNextKeyManager.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/c2kernel/lookup/ldap/LDAPNextKeyManager.java b/src/main/java/com/c2kernel/lookup/ldap/LDAPNextKeyManager.java
index 48f938e..73296ef 100644
--- a/src/main/java/com/c2kernel/lookup/ldap/LDAPNextKeyManager.java
+++ b/src/main/java/com/c2kernel/lookup/ldap/LDAPNextKeyManager.java
@@ -28,13 +28,13 @@ public class LDAPNextKeyManager implements NextKeyManager {
String lastKeyPath;
public LDAPNextKeyManager() {
- super();
- LDAPProperties props = new LDAPProperties(Gateway.getProperties());
- this.lastKeyPath = "cn=last,cn=entity,"+props.mLocalPath;
}
- public void open(Authenticator auth) {
+ @Override
+ public void open(Authenticator auth) {
this.ldap = (LDAPAuthManager)auth;
+ LDAPProperties props = new LDAPProperties(Gateway.getProperties());
+ this.lastKeyPath = "cn=last,cn=entity,"+props.mLocalPath;
}
@Override