Description of problem: We have set Max.Username Length to 255 in our policy but when we try to create a user with more than 33 characters in the username it fails with the error message "Enter only letters, numbers, _ (underscore), - (dash) or $". How reproducible: Always Steps to Reproduce: 1) Set Max.Username Length to 255 2) Try to create user with >33 characters in username and it will fail. Actual results: Error message displayed: "Enter only letters, numbers, _ (underscore), - (dash) or $". This happens both in the web interface as well as in the CLI. Expected results: User should be created.
Yes, I suppose we should document what the maximum is. This is bounded based on what shadowutils supports. We use the following regular expression: ^[a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,30}[a-zA-Z0-9_.$-]?$ The trailing $ is there to support samba machine names.
When I was documenting this for version 1.x I was provided with the following regex: [a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,30}[a-zA-Z0-9_.$-] Has this changed or are we looking at two different things?
Perhaps you were provided with a truncated version, probably by me :-(
https://fedorahosted.org/freeipa/ticket/226
master: 3d55b66e48466bf190f85d78d15c040d27bc136d