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

Error in auth_ldap_sync_users.php

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 1.9.10, 2.0
    • Component/s: Authentication
    • Labels:
      None
    • Environment:
      OS: Ubuntu 10.04; PHP Version: 5.3.2-1ubuntu4.2; DB: MySQL 5.1.41, LDAP: Microsoft Active Directory (Server 2003)
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      Running the script auth/ldap/auth_ldap_sync_users.php imports between 1 and 5 users then dies with error:

      Database transaction aborted automatically in /var/www/moodle/auth/ldap/auth_ldap_sync_users.php
      Default exception handler: Coding error detected, it must be fixed by a programmer: Invalid call to role_assign(), userid can not be empty Debug:

      • line 2520 of /lib/accesslib.php: coding_exception thrown
      • line 875 of /auth/ldap/auth.php: call to role_assign()
      • line 42 of /auth/ldap/auth_ldap_sync_users.php: call to auth_plugin_ldap->sync_users()

      The user that are imported are able to log in successfully.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Oct/10