Commits

Anonymous committed 6143032

Issue number: USER-85

Fix caching problem in LDAP.

Comments (0)

Files changed (1)

src/java/com/opensymphony/user/provider/ldap/LDAPCredentialsProvider.java

 
     public boolean init(Properties properties) {
         if (log.isDebugEnabled()) {
-            log.debug("Credentials Provider " + providerName() + " $Revision: 1.8 $ initializing");
+            log.debug("Credentials Provider " + providerName() + " $Revision: 1.9 $ initializing");
         }
 
         env = new Hashtable(properties);
         // LDAP cannot support removing users
         Collection credentialsProviders = UserManager.getInstance().getCredentialsProviders();
 
+        cache.remove(name);
+
         for (Iterator iterator = credentialsProviders.iterator();
                 iterator.hasNext();) {
             CredentialsProvider provider = (CredentialsProvider) iterator.next();