Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2388

NPE on connecting to Active Directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • No Release
    • JBossAS-4.0.3 Final
    • Security
    • 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.

              Unassigned Unassigned
              ronnc Ronn c (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: