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

ldap auth sync - add paged support

    Details

    • Testing Instructions:
      Hide

      Make sure you can run PHP 5.4 and PHP 5.3 - tests need to be done on both PHP versions. probably best to run on PHP 5.3 first.

      Make sure you have an LDAP store that has a high number of users (over 1000 in a single container)

      set Moodle ldap auth to connect to your LDAP as per usual and check to make sure login works correctly with a few accounts.
      with PHP 5.3
      run the CLI script /auth/ldap/cli/sync_users.php
      Not all ldap accounts will be transferred into Moodle (unless you've configured your ldap to return more than the usual number of records)
      Move to PHP 5.4
      run the CLI script again - it should create all the missing accounts that it previously missed.

      Test ldap enrolment.

      Show
      Make sure you can run PHP 5.4 and PHP 5.3 - tests need to be done on both PHP versions. probably best to run on PHP 5.3 first. Make sure you have an LDAP store that has a high number of users (over 1000 in a single container) set Moodle ldap auth to connect to your LDAP as per usual and check to make sure login works correctly with a few accounts. with PHP 5.3 run the CLI script /auth/ldap/cli/sync_users.php Not all ldap accounts will be transferred into Moodle (unless you've configured your ldap to return more than the usual number of records) Move to PHP 5.4 run the CLI script again - it should create all the missing accounts that it previously missed. Test ldap enrolment.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip_master_mdl-36119_ldap_paged_results

      Description

      I couldn't find an existing open bug for this so if I've missed something let me know.

      LDAP in PHP has had a problem for ages that has meant that the sync process hasn't worked well. That bug has finally been fixed in PHP 5.4 so we should be able to implement a conditional fix for Moodle 2.4 at least.

      most of the work on this has been done already - we just need to port this for Moodle 2.4
      more info here:
      https://github.com/jcharaoui/moodle-cegep/wiki/PHP-LDAP-Paging

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  12 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    3/Dec/12