Red Hat Bugzilla – Bug 734610
ldap users registering for RHQ with usernames of less than 6 characters fails
Last modified: 2013-08-05 20:40:58 EDT
Description of problem:
When an existing ldap user tries to register with RHQ for the first time, and their username is less than 6 characters long, a red ! appears to the left of their username with the mouse over text reading "Must be at least 6 characters". The admin user can create local users that have usernames of less than 6 characters, its just not an ldap login.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create an ldap user whose username is less than 5 char
2. Login with this user to RHQ and attempt to register for the first time
able to register
[master 5938708] fixes this. There is no longer any length restrictions on the username on the registration form.
It should be noted that the username field in the DB does have a maximum length constraint of 100 characters. I did not add a validator for that constraint, since it seems very unlikely to encounter LDAP usernames longer than 100 chars. However, one can easily be added if other people think it should be done.
Verified on build#421 (Version: 4.1.0-SNAPSHOT Build Number: ad51846)
Registered and logged in to RHQ successfully as ldap user having user name less than 5 characters.
Marking as verified.
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE
marking VERIFIED BZs to CLOSED/CURRENTRELEASE