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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.6.3, 2.7, 2.8
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
      None
    • Affected Branches:
      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

              • Assignee:
                Unassigned
                Reporter:
                ghigio Federico
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: