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

LDAP deprecations in PHP 7.4

XMLWordPrintable

    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_38_STABLE
    • Hide

      Unit tests (auth_ldap_testsuite and enrol_ldap_testsuite) cover the modified code 100% so, as far as we get this passing with both php71 (old code) and php73 (new code), that should be enough.

      (behavior for php72 === php71 and for php74 === php73)

      So I think this can go to CiBoT safely.

      Show
      Unit tests (auth_ldap_testsuite and enrol_ldap_testsuite) cover the modified code 100% so, as far as we get this passing with both php71 (old code) and php73 (new code), that should be enough. (behavior for php72 === php71 and for php74 === php73) So I think this can go to CiBoT safely.

      ldap_control_paged_result_response and ldap_control_paged_result are
      deprecated. Pagination controls can be sent along with ldap_search instead.

      That means, unless I'm wrong, that we'll have to use LDAP controls within ldap_search() instead.

      Problem is that LDAP controls are only available for php73 and up, so we'll need to perform some interim conditional code: one solution for php71-72 and another for php73-74.

      Links:

      LDAP search: https://www.php.net/manual/en/function.ldap-search.php
      LDAP controls: https://www.php.net/manual/en/ldap.controls.php
      LDAP controls examples: https://www.php.net/manual/en/ldap.examples-controls.php

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Carlos Escobedo Carlos Escobedo
            Jun Pataleta Jun Pataleta
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 1 minute
                1d 3h 1m

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