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

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.2
    • None
    • Authentication, Enrolments
    • 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

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

              Dates

                Created:
                Updated: