On-the-fly user creation fails silently if LDAP attribute is not found for new user
I've turned on on-the-fly creation of users in the LDAP authentication settings and filled in the appropriate attributes to copy for login, first name, last name and email.
A few of the users in our LDAP directory do not have an email defined while most of them do. When I log in a user for the first time that has an email defined everything works fine. However, if I log in a user who does not have an email address defined in LDAP, the login fails completely but without giving the reason.
Best would be if the login succeeds but the user is prompted with a message and asked to fill in the missing information about himself. This is what happens when the attributes fields are left completely blank and no mapping done between these fields and the attributes in LDAP. Then, redMine prompts the user upon first login to fill in this information.