Defect #2638

LDAP authentication should allow username to contain space(s)

Added by Bob Roberts almost 14 years ago. Updated 3 months ago.

Status:NewStart date:2009-02-01
Priority:NormalDue date:
Assignee:-% Done:


Target version:Candidate for next minor release
Resolution: Affected version:


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.

Related issues

Related to Redmine - Patch #811: Username validation - allow spaces... New 2008-03-08


#1 Updated by sebastian ovide over 12 years ago

any plans for it ?

#2 Updated by Etienne Massip about 11 years ago

  • Category changed from Accounts / authentication to LDAP

#3 Updated by Etienne Massip about 11 years ago

  • Target version set to Candidate for next minor release

#4 Updated by Antoine Rodriguez over 10 years ago

It's more an Issue. AD usernames with space cannot authenticate with Active Directory.

Confirmed on Redmine 2.0.1

Best regards,

#5 Updated by Piotr Karasinski over 9 years ago


Also available in: Atom PDF