Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1453

RS in change password if LDAP authentication is misconfigured

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.2.1
    • Component/s: None
    • Labels:
      None

      Description

      The unexpected exception is raised if OpenOLAt is configured to propagate the password changes of LDAP users to the LDAP server but the LDAP server doesn't accept these changes (e.g. for ActiveDirectory a SSL connection is mandatory to make password changes ). The goal of the issue is to prevent the red screen and show an error message instead.

      Error#: N1-E14
      Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36
      
      **RedScreen**
      <dispatchinfo>
      	<componentinfo> 
      		<compname>ffo_main_null</compname> 
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.control.Event</class&gt;
      			<command>validation ok</command>
      			<tostring>com:validation ok,org.olat.core.gui.control.Event@d62b3f02</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.registration.PwChangeForm</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      Cause: 
      stack of 1.cause::org.olat.core.logging.OLATRuntimeException: null
      -> at org.olat.core.gui.exception.ExceptionWindowController.<init>(ExceptionWindowController.java:116)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:57)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:46)
         at org.olat.dispatcher.DMZDispatcher.execute(DMZDispatcher.java:285)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:269)
         at org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:212)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
         at org.olat.core.servlets.OpenOLATServlet.service(OpenOLATServlet.java:155)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      stack of 2.cause::java.lang.NullPointerException: null
      -> at javax.naming.InitialContext.getURLScheme(InitialContext.java:288)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:337)
         at javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(InitialDirContext.java:106)
         at javax.naming.directory.InitialDirContext.modifyAttributes(InitialDirContext.java:167)
         at org.olat.ldap.manager.LDAPLoginManagerImpl.changePassword(LDAPLoginManagerImpl.java:311)
         at org.olat.login.auth.OLATAuthManager.changePassword(OLATAuthManager.java:208)
         at org.olat.login.auth.OLATAuthManager.changePasswordByPasswordForgottenLink(OLATAuthManager.java:284)
         at org.olat.registration.PwChangeForm.saveFormData(PwChangeForm.java:88)
         at org.olat.registration.PwChangeController.event(PwChangeController.java:178)
         at org.olat.core.gui.control.DefaultController$1.run(DefaultController.java:241)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Tester:
            Florian Gnägi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m