-
Bug
-
Resolution: Fixed
-
Critical
-
2.6, 2.7.1
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-42993-master -
-
13
-
FRONTEND Sprint 14
Using LDAP authentication tied into AD users with spaces in their network logon (sAMAccountName) receive 'The given username contains invalid characters' message when trying to log in to Moodle for the first time. This configuration worked previously on 2.5
The difference between 2.5 and 2.6 is in lib/moodlelib.php::create_user_record($username, $password, $auth = 'manual') and it used do a database insert for the user record. It now calls the function user_create_user which includes validation.
To allow the extended user name set you now need to set the following in your Moodle config.php.
$CFG->extendedusernamechars = true
|
- has a non-specific relationship to
-
MDL-15196 external db authentication compares user names case-sensitive
- Closed
-
MDL-16919 Administration: Allow username to contain an underscore
- Closed
- has been marked as being related by
-
MDL-33406 ldap authentication: Sync users fails to add new users but updates existing users during cli/sync_users.php execution. Errors with Unable to write to database
- Closed
-
MDL-46975 The email address check during sign up is case sensitive
- Closed
-
MDL-49127 Crobjon sync_users.php fail
- Closed
- is a regression caused by
-
MDL-45641 Trigger user updated event only after the profile fields are updated
- Closed
- is duplicated by
-
MDL-44448 LDAP Sync users moodle_exception thrown invalidusername
- Closed
-
MDL-46113 auth_ldap : crash on invalid username
- Closed