-
Bug
-
Resolution: Fixed
-
Major
-
2.0
-
None
-
OS: Ubuntu 10.04; PHP Version: 5.3.2-1ubuntu4.2; DB: MySQL 5.1.41, LDAP: Microsoft Active Directory (Server 2003)
-
MySQL
-
MOODLE_20_STABLE
-
MOODLE_19_STABLE, MOODLE_20_STABLE
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.