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

            Hide
            jchryst Joe Chryst added a comment -

            This appears to be related to assigning the users as "Course Creators" on import. We have an Active Directory security group set up for teachers so they can create there own courses. If a users is a member of this AD group the import fails.

            Show
            jchryst Joe Chryst added a comment - This appears to be related to assigning the users as "Course Creators" on import. We have an Active Directory security group set up for teachers so they can create there own courses. If a users is a member of this AD group the import fails.
            Hide
            iarenaza Iñaki Arenaza added a comment - - edited

            This should be fixed in CVS. Both in 1.9.x and HEAD.

            Thanks a lot to Joe Chryst for the bug report!

            Saludos.
            Iñaki.

            Show
            iarenaza Iñaki Arenaza added a comment - - edited This should be fixed in CVS. Both in 1.9.x and HEAD. Thanks a lot to Joe Chryst for the bug report! Saludos. Iñaki.

              People

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

                Dates

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