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

Synchronization script (enrol/ldap/lib.php) have problems with the courses that have a lot of users to sync (more than 1000)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.2
    • Fix Version/s: None
    • Component/s: Authentication, Enrolments
    • Labels:
    • Affected Branches:
      MOODLE_32_STABLE

      Description

      Using the synchronization script, there is a problem with the courses that have a lot of users (almost 2000) to sync.

      • We are having this message :

        PHP Warning: ldap_read(): Search: Can't contact LDAP server in /.../moodle/enrol/ldap/lib.php on line 917
        PHP Warning: ldap_first_entry() expects parameter 2 to be resource, boolean given in /.../moodle/enrol/ldap/lib.php on line 918
        PHP Warning: ldap_get_values() expects parameter 2 to be resource, null given in /.../moodle/enrol/ldap/lib.php on line 919
        PHP Warning: in_array() expects parameter 2 to be array, null given in /.../moodle/enrol/ldap/lib.php on line 921

      • A workaround (with which we are not really happy) is to reopen the connection for each course processed enabling it to finish (and there is no time out and all the users are synced)

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ardanzap Paula Ardanza Menendez
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: