From ed8037772d068c49800fb4f88697d1f818031120 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 22 Jul 2014 12:21:42 +0200 Subject: Move init code to open() in case instantiation is done outside the Gateway and the props aren't ready yet --- src/main/java/com/c2kernel/lookup/ldap/LDAPNextKeyManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/c2kernel') 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 -- cgit v1.2.3