Author: ruchith
Date: Sun Dec  9 00:56:59 2007
New Revision: 10729

Log:

Fixed the dn issue in auth against a LDAP store

Modified:
   
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/custom/ldap/LDAPAuthenticator.java

Modified: 
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/custom/ldap/LDAPAuthenticator.java
==============================================================================
--- 
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/custom/ldap/LDAPAuthenticator.java
        (original)
+++ 
trunk/commons/usermanager/modules/core/src/main/java/org/wso2/usermanager/custom/ldap/LDAPAuthenticator.java
        Sun Dec  9 00:56:59 2007
@@ -39,7 +39,7 @@
                 // .format(new String[] { (String) credentials });
 
                 String dn = MessageFormat.format(config.getUserPattern(),
-                        new String[] { (String) credentials });
+                        new String[] { (String) userName });
                 bValue = this
                         .bindAsUser(this.context, dn, (String) credentials);
 

_______________________________________________
Commons-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/commons-dev

Reply via email to