Moodle
  1. Moodle
  2. MDL-3141

Can't Update external data with LDAP authentication

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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
    • Rank:
      10786

      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.

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Cory Bertsch (bertsch at up.edu) Tuesday, 26 July 2005, 07:18 AM:

        I get this error as well as long as a single field is set to Update external data. Setting Update external for all fields to never allowed profiles to be edited.

        From Zach Erbaugh (erbauza at earlham.edu) Tuesday, 2 August 2005, 08:08 PM:

        Thanks for the reply, bertsch. I think that by saying the way to fix it is to turn it off, you're confirming that the Update external data feature is broken.

        From Martin Langhoff (martin at catalyst.net.nz) Thursday, 6 October 2005, 10:25 AM:

        Fixed in HEAD and STABLE. Thanks a lot for a superb bug report.

        This bug (typo, actually) got past us because it would only be triggered when you picked one field to be updated. If you picked more than one, it would work correctly.

        From Martin Langhoff (martin at catalyst.net.nz) Thursday, 6 October 2005, 10:26 AM:

        Closing - the fix will be in tomorrow's 1.5.2+.

        Show
        Martin Dougiamas added a comment - From Cory Bertsch (bertsch at up.edu) Tuesday, 26 July 2005, 07:18 AM: I get this error as well as long as a single field is set to Update external data. Setting Update external for all fields to never allowed profiles to be edited. From Zach Erbaugh (erbauza at earlham.edu) Tuesday, 2 August 2005, 08:08 PM: Thanks for the reply, bertsch. I think that by saying the way to fix it is to turn it off, you're confirming that the Update external data feature is broken. From Martin Langhoff (martin at catalyst.net.nz) Thursday, 6 October 2005, 10:25 AM: Fixed in HEAD and STABLE. Thanks a lot for a superb bug report. This bug (typo, actually) got past us because it would only be triggered when you picked one field to be updated. If you picked more than one, it would work correctly. From Martin Langhoff (martin at catalyst.net.nz) Thursday, 6 October 2005, 10:26 AM: Closing - the fix will be in tomorrow's 1.5.2+.
        Hide
        Michael Blake added a comment -

        assign to a valid user

        Show
        Michael Blake added a comment - assign to a valid user

          People

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

            Dates

            • Created:
              Updated:
              Resolved: