[KARAF-4945]ensure LDAPCache is cleared when jaas module bundle get reloaded
@@ -44,8 +44,10 @@ public class LDAPLoginModule extends AbstractKarafLoginModule {
private static Logger logger = LoggerFactory.getLogger(LDAPLoginModule.class);
+
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) {
super.initialize(subject, callbackHandler, options);
+ LDAPCache.clear();
}
public boolean login() throws LoginException {
