Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-69510

Use warning notification instead of plain text to highlight missing ldap module on settings pages

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.10
    • 3.10, 4.0
    • Administration
    • MOODLE_310_STABLE, MOODLE_400_STABLE
    • MOODLE_310_STABLE
    • MDL-69510-master
    • Hide

      With LDAP Disabled

      1. Disable ldap and restart the web server:

        sudo phpdismod ldap
        sudo service apache2 restart

      2. Now, visit Site admin > Plugins > Authentication > Manage authentication plugins
      3. Select 'Settings' next to ldap
      4. Verify you see a yellow warning notification at the top of the page telling you that ldap might be disabled.
      5. Verify the text is NOT italicised
      6. Verify you do not see the 'auth_ldap | host_url' setting on the page
      7. Go back to 'Manage authentication plugins'
      8. Click 'Settings' for the CAS Server plugin
      9. Verify you see a yellow warning notification at the top of the page telling you that ldap might be disabled.
      10. Verify the text is NOT italicised
      11. Verify you do not see the 'auth_cas | auth_name' setting on the page
      12. Now, visit Site admin > Plugins > Enrolment > Manage enrol plugins
      13. Select 'Settings' next to ldap
      14. Verify you see a yellow warning notification at the top of the page telling you that ldap might be disabled.
      15. Verify the text is NOT italicised
      16. Verify you do not see the 'enrol_ldap | host_url' setting on the page

      With LDAP Enabled

      1. Enable ldap and restart the web server:

        sudo phpenmod ldap
        sudo service apache2 restart

      2. Now, visit Site admin > Plugins > Authentication > Manage authentication plugins
      3. Select 'Settings' next to ldap
      4. Verify you DO NOT see a yellow warning
      5. Verify you DO see the 'auth_ldap | host_url' setting on the page
      6. Go back to 'Manage authentication plugins'
      7. Click 'Settings' for the CAS Server plugin
      8. Verify you DO NOT see a yellow warning notification
      9. Verify you DO see the 'auth_cas | auth_name' setting on the page
      10. Now, visit Site admin > Plugins > Enrolment > Manage enrol plugins
      11. Select 'Settings' next to ldap
      12. Verify you DO NOT see a yellow warning notification
      13. Verify you DO see the 'enrol_ldap | host_url' setting on the page
      Show
      With LDAP Disabled Disable ldap and restart the web server: sudo phpdismod ldap sudo service apache2 restart Now, visit Site admin > Plugins > Authentication > Manage authentication plugins Select 'Settings' next to ldap Verify you see a yellow warning notification at the top of the page telling you that ldap might be disabled. Verify the text is NOT italicised Verify you do not see the 'auth_ldap | host_url' setting on the page Go back to 'Manage authentication plugins' Click 'Settings' for the CAS Server plugin Verify you see a yellow warning notification at the top of the page telling you that ldap might be disabled. Verify the text is NOT italicised Verify you do not see the 'auth_cas | auth_name' setting on the page Now, visit Site admin > Plugins > Enrolment > Manage enrol plugins Select 'Settings' next to ldap Verify you see a yellow warning notification at the top of the page telling you that ldap might be disabled. Verify the text is NOT italicised Verify you do not see the 'enrol_ldap | host_url' setting on the page With LDAP Enabled Enable ldap and restart the web server: sudo phpenmod ldap sudo service apache2 restart Now, visit Site admin > Plugins > Authentication > Manage authentication plugins Select 'Settings' next to ldap Verify you DO NOT see a yellow warning Verify you DO see the 'auth_ldap | host_url' setting on the page Go back to 'Manage authentication plugins' Click 'Settings' for the CAS Server plugin Verify you DO NOT see a yellow warning notification Verify you DO see the 'auth_cas | auth_name' setting on the page Now, visit Site admin > Plugins > Enrolment > Manage enrol plugins Select 'Settings' next to ldap Verify you DO NOT see a yellow warning notification Verify you DO see the 'enrol_ldap | host_url' setting on the page

      In both enrol/ldap/settings.php and auth/ldap/settings.php, if php-ldap isn't enabled, a string is displayed on the settings page, and a number of settings are not rendered.

      The text doesn't stand out to the user, so we should consider using a notification (of type warning) like we do in other settings pages like enrol/lti/settings.

        1. With LDAP Disabled_Test Passed.png
          172 kB
          Gladys Basiana
        2. With LDAP Enabled_Test Passed.png
          289 kB
          Gladys Basiana

            jaked Jake Dallimore
            jaked Jake Dallimore
            Mihail Geshoski Mihail Geshoski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 35 minutes
                1h 35m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.