-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
2.7.20, 3.0.10, 3.1.6, 3.2, 3.3
-
MOODLE_27_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
-
wip-
MDL-59440-master -
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.