LDAP authentication should allow username to contain space(s)
|Target version:||Candidate for next minor release|
It is not uncommon for Windows AD servers to allow spaces in the user name (sAMAccountName) but currently redmine does not allow the user name to contain 1 or more spaces which means that when using LDAP to authenticate, it is not possible to use sAMAccountName to lookup users.
If there is not a technical reason for this limitation, would suggest the the regex scan for the user name allow spaces in the middle of user names, but not at the start or end.
See patch #811 supporting this change.