Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5175

NPE in XWikiLDAPUtils#isMemberOfGroup cause authentication to fail

    XMLWordPrintable

Details

    • Trivial

    Description

      When an LDAP group used in XWiki configuration could not be read for any reason, XWikiLDAPUtils#getGroupMembers() will return null and that cause an NPE in XWikiLDAPUtils#isMemberOfGroup which terminate the authentication process prematurely on failure.

      2010-05-11 14:56:34,155 [http://www.appreciative-si.com/site/loginsubmit/XWiki/XWikiLogin?cgu=skip] DEBUG LDAP.XWikiLDAPAuthServiceImpl   - Local LDAP authentication failed. 
      java.lang.NullPointerException
      	at com.xpn.xwiki.plugin.ldap.XWikiLDAPUtils.isMemberOfGroup(XWikiLDAPUtils.java:443)
      	at com.xpn.xwiki.plugin.ldap.XWikiLDAPUtils.isMemberOfGroups(XWikiLDAPUtils.java:465)
      	at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncGroupsMembership(XWikiLDAPAuthServiceImpl.java:614)
      	at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.syncGroupsMembership(XWikiLDAPAuthServiceImpl.java:572)
      	at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:456)
      	at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:202)
      	at com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:149)
      

      Attachments

        Activity

          People

            softec Denis Gervalle
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: