-
Improvement
-
Resolution: Fixed
-
Minor
-
2.9.2, 3.1
-
MOODLE_29_STABLE, MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
MDL-52386-master -
-
3.1 Sprint 5
Users in Active Directory that are set to disabled status (userAccountControl:1.2.840.113556.1.4.803:=2) are created in Moodle through the use of the LDAP plugin as active and should be created with the suspended flag set.
While the disabled users cannot log in to Moodle, this issue leads to reporting errors. When all users are auto-enrolled in a course and a course completion report is generated all of these disabled users appear as active and not started. This artificially skews the numbers on the report (which for us is a problem since this is legally mandated security training for all active accounts).
To reproduce this issue create a Moodle implementation that utilizes LDAP to connect to Active Directory, and under the plugin configuration, Cron synchronization script, set the Add new users option to yes and either manually or via cron execute the sync_users.php script. Make sure there is at least one user in AD within the base DN (or below if search subordinate is set to yes) with a disabled account. Once replicated, this disabled account will appear in Moodle as a regular active account without the suspended user flag set. The user will not be able to log in, but may be enrolled in courses and will appear as incomplete.
- caused a regression
-
MDL-53580 Undefined property suspended_attribute
-
- Closed
-