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

Can't Update external data with LDAP authentication

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
      None
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      I'm using LDAP authentication (against an OpenLDAP server), which works fine on both of my productins Moodle sites and my development site (v1.5 ALPHA, 2005043000). I've set both Update local data and Update external data to Yes for several fields. The local data update works fine - when the user logs in, I get the data from the LDAP server. When I change any of those fields in Moodle and try to update the profile, I get:

      Fatal error: Call to undefined function: () in www/moodle.dev/auth/ldap/lib.php on line 821

      I've taken a peek at the code - line 821 in http://moodle.cvs.sourceforge.net/moodle/moodle/auth/ldap/lib.php is:

      $ldapkeys = $array($ldapkeys);

      The data gets updated correctly in the Moodle db.

      The local data is updated correctly (until the next login ). My bind-user has the rights to make the changes.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: