Defect #2719


Increase username length limit from 30 to 60

Added by Alexander Pavlov over 15 years ago. Updated over 12 years ago.

Accounts / authentication
Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected version:


We use LDAP authorization and our logins consist of firstname.lastname.companyname.

As result, we faced problem with registering new users within Redmine.

Could you please increase username lenght limit to 60 or more?


0001-Fixes-2719.patch (1.61 KB) 0001-Fixes-2719.patch Based on revision r2548 Enderson Maia, 2009-03-06 03:16
2017_change_max_username_length.patch (1.84 KB) 2017_change_max_username_length.patch quilt patch for the Ubuntu package on the PPA Bruno Bigras, 2011-10-25 20:12

Related issues

Related to Redmine - Defect #8450: redmine:email:receive_imap fails silently when creating an account where login is too longClosed2011-05-27

Related to Redmine - Feature #36825: Increase email address length limit from 60 to 254ClosedGo MAEDA

Has duplicate Redmine - Defect #4991: varchar(30) for login is too short when login=email (ldap typical usage)Closed2010-03-05

Follows Redmine - Feature #6446: Remove length limits on project identifier and nameClosedFelix Schäfer2010-09-20

Actions #1

Updated by Enderson Maia over 15 years ago

Added a patch that fixes it on 0.8-stable

Actions #2

Updated by Alexander Pavlov over 15 years ago

Enderson Maia wrote:

Added a patch that fixes it on 0.8-stable

Thank you, Enderson!

Actions #3

Updated by Ludovic Gasc about 14 years ago

+1 for this feature, it's useful if the e-mail = login.

The patch seems to work correctly on the 0.9 branch.

Actions #4

Updated by Jens Peter Kempkes about 14 years ago

working on 0.9.3 stable I saw this issue. When will this patch be merge into the stable branch?

Actions #5

Updated by Enderson Maia almost 14 years ago

My has this patch applyed, I think it could be easily merged into trunk.

Actions #6

Updated by Etienne Massip over 13 years ago

  • Target version set to Candidate for next major release
Actions #7

Updated by Cheyenne Wills over 13 years ago

If possible, could this be bumped into a "sooner" release?? (if not I assume the above patch will work against the current stable).


Actions #8

Updated by Jochen Manz about 13 years ago

bump, i also need it!

Actions #9

Updated by Peter Fern almost 13 years ago


Actions #10

Updated by Bruno Bigras over 12 years ago

Here's an updated quilt version of the patch that I'm using with the Ubuntu package from the PPA.

I had to change "ChangeUserNameLimit" to "ChangeUserLoginLimit" to match the file name for the migration to works.

Actions #11

Updated by James Birmingham over 12 years ago

This has taken a long time to be resolved, their is also #4991.
Can we be sure that when this does get added into a release that the database schema is also updated as the constraint is present there also, which the above patch seems to miss.

Actions #12

Updated by James Birmingham over 12 years ago

Can we get the priority raised on this, as it is a blocking issue for users we legacy accounts to integrate with Redmine.

Actions #13

Updated by Jean-Philippe Lang over 12 years ago

  • Due date deleted (2010-09-21)
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version changed from Candidate for next major release to 1.4.0
  • Resolution set to Fixed

Change done in r8778. Username and email address can now be 60 characters long.

Actions #14

Updated by Go MAEDA over 2 years ago

  • Related to Feature #36825: Increase email address length limit from 60 to 254 added

Also available in: Atom PDF