I use LDAP and MS Active directory with moodle 2.7. Users are authenticated and accounts are then automatically created using 3 mapped field (first/lastname, email.
Most of the time it works. Sometimes a user's email is blank and they are prompted to enter an email but cannot get in as we locked the value down. I'm trying to determine if our ldap values are blank or whether moodle is the source of the problem.
I looked at the database User table to investigate what was there under these problematic accounts and noticed a lot of accounts had 30char long strings for the email field and 10digit decimals under the usernames, does moodle normally populate these fields with the 30char string and 10digit decimal number when the mapped fields are blank?
If the email is populated by moodle should a user be able to login if they close their browser and try again (because we locked the email value, the user is prompted to enter it but cannot proceed into moodle)?
If I remove the mapped field for mail (we dont use emails) will moodle enter a default value on account creation for email that looks something like a large random string 30char long?
I was thinking about leaving the mapped mail field and changing it to 'unlock if blank' , looks like a good workaround but I was hoping to find the source of the problem and these mysterious values in the User's table.