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

LDAP auth doesn't update custom fields during run of cli/sync_users.php

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.6.3, 2.7, 2.8
    • None
    • Authentication
    • None
    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE

    Description

      The script /auth/ldap/cli/sync_users.php doesn't syncronize user custom fields. It return the following warning
      Notice: Undefined property: stdClass::$profile_field_mycustomfield in <absolute path to my install>\auth\ldap\auth.php on line 1022

      The method user_update_user called by the ldap plugin doesn't save the custom fields.

      If an user logs into moodle, the login procedure calls authenticate_user_login(). That metod calls the ldap plugin but ends with the call of profile_save_data() that saves the correct informations.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ghigio Federico Ghigini
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: