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

Improve resilience / flexibility of LDAP authentication module

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.7.20, 3.0.10, 3.1.6, 3.2, 3.3
    • Authentication
    • MOODLE_27_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
    • wip-MDL-59440-master
    • Hide

      define('MDL_LDAP_OPT_NETWORK_TIMEOUT','9');
      define('MDL_LDAP_OPT_TIMEOUT','5');

      1. re-run unit tests - vendor/bin/phpunit auth_ldap_plugin_testcase auth/ldap/tests/plugin_test.php
      Show
      define('MDL_LDAP_OPT_NETWORK_TIMEOUT','9'); define('MDL_LDAP_OPT_TIMEOUT','5'); re-run unit tests - vendor/bin/phpunit auth_ldap_plugin_testcase auth/ldap/tests/plugin_test.php

      Allow for LDAP_OPT_NETWORK_TIMEOUT, and LDAP_OPT_TIMEOUT to be able to be used in as options with LDAP. (if they are defined).

      This will allow for flexibility in tuning the ldap connection that can be useful.

      If LDAP_OPT_NETWORK_TIMEOUT is not set, then option set to its default value of 0 (infinite), the system will seem to hang for several minutes, depending on the TCP stack settings, until control is finally returned to Moodle.

      Setting this option to a low value makes the system more responsive, and also allows automatic and rapid failover to the next available LDAP server.

      Similarly being able to set LDAP_OPT_TIMEOUT, allows some flexibility to help tune the connection when returning search results. 

      The inclusion of both of these settings will help fine tune / troubleshoot LDAP connection / performance issues.

       

       

       

       

       

       

       

       

       

            Unassigned Unassigned
            2shediac Derek Henderson (Inactive)
            Ryan Wyllie Ryan Wyllie
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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