Red Hat Bugzilla – Bug 965498
anaconda text mode user create doesn't take capital characters for username
Last modified: 2014-01-30 17:04:52 EST
Description of problem:
If user enters "John" instead of "john" as username, anaconda will not accept it
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start installation in text mode
2. Proceed to user creation
3. Set username to "John"
anaconda doesn't allow capital letters in username
Anaconda should allow same usernames as useradd.
pyanaconda/ui/tui/spokes/user.py:41: Entry("Username", "name", re.compile("^[a-z0-9_]+$"), lambda self,args: args._create),
Created attachment 750963 [details]
Created attachment 750964 [details]
Created attachment 750965 [details]
Created attachment 750966 [details]
Created attachment 750967 [details]
Created attachment 750968 [details]
Created attachment 750969 [details]
useradd accepts capital letters and creates user John.
*patch posted to anaconda for review
posted for review = POST not MODIFIED.
https://lists.fedorahosted.org/pipermail/anaconda-patches/2013-June/004432.html is the patch that was posted, which wasn't pushed. The patch is fine, but I reset the status to NEW because I've been working on the same thing in the GUI and I plan to tweak the check a little bit. For example, the username should also allow dots and non-initial hyphens.