-
Bug
-
Resolution: Duplicate
-
Major
-
JBossAS-4.0.3 Final
-
None
I'm configuring active directory for login module as suggested in
http://wiki.jboss.org/wiki/Wiki.jsp?page=LdapLoginModule
NPE is thrown with Failed to validate password error eventhough the password is correct.
- 2005-10-20 07:43:20,409 - DEBUG - http-0.0.0.0-8080-2 - org.jboss.security.auth.spi.LdapLoginModul
e - Failed to validate password
java.lang.NullPointerException
at org.jboss.security.auth.spi.LdapLoginModule.createLdapInitContext(LdapLoginModule.java:38
5)
at org.jboss.security.auth.spi.LdapLoginModule.validatePassword(LdapLoginModule.java:224)
at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule
.java:186)
It appears that there is a bug in LdapLoginModule when the code attempt to search for user roles. The filter that is used for search is incorrect and hence all users are returned from the search but with null attributes for unmatched user - thus NPE is thrown.
- is related to
-
JBAS-2465 LdapLoginModule assign all roles to authenticated user
- Closed