Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-40834

NPE logging in with unboundid ldap sdk

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Incorporated
    • Affects Version/s: 12.4
    • Fix Version/s: None
    • Component/s: Providers
    • Labels:
      None
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      For Sakai 12.x

      • port the unboundid src into 12.x (SAK-23630)
      • configure unboundid for your ldap instance, build, and start tomcat
      • try to login with a ldap user
      •  Exeption
      18-Oct-2018 08:59:34.354 WARN [http-nio-8580-exec-7] org.sakaiproject.portal.util.ErrorReporter.logAndMail Bug Report bug-id: 9872ee20-2d08-4394-8578-31926de35f76 user: null usage-session: null time: Oct 18, 2018 08:59:34 user comment: null stack trace
      org.sakaiproject.portal.api.PortalHandlerException: java.lang.NullPointerException
          at org.sakaiproject.portal.charon.handlers.XLoginHandler.doPost(XLoginHandler.java:50)
      caused by: java.lang.NullPointerException
          at org.sakaiproject.unboundid.UnboundidDirectoryProvider.authenticateUser(UnboundidDirectoryProvider.java:388)
          at org.sakaiproject.user.impl.BaseUserDirectoryService.getProviderAuthenticatedUser(BaseUserDirectoryService.java:1727)
          at org.sakaiproject.user.impl.BaseUserDirectoryService.authenticate(BaseUserDirectoryService.java:1670)
          at org.sakaiproject.user.impl.UserAuthnComponent.authenticate(UserAuthnComponent.java:107)
          at org.sakaiproject.login.impl.LoginServiceComponent.authenticate(LoginServiceComponent.java:90)
          at org.sakaiproject.login.tool.SkinnableLogin.doPost(SkinnableLogin.java:350)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
          .
          .
          .

       

      I belive that the error happens because the securityService is not injected into UnboundidDirectoryProvider through unboundid-ldap.xml

       

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  Unassigned Unassigned
                  Reporter:
                  austinUH Austin
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration