-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin usernames can not include dots #11
Comments
Hi Alfonso, class LowerAlphaNumeric(object): Chef usernames are sanitized by replacing the dots by underscores: def name=(n) Also Chef saves the user via the REST API so the username must create a proper URI, so it must be limited to [ ALPHA / DIGIT / "-" / "_" / "~" ] Maybe the sanitize function must force the username to match the following regular expression: [A-Za-z0-9-_~] Do you think that "admin usernames " and "workstation usernames" must be sanitized by using this regular expression? |
Yes, it looks a pretty straight forward solution, although I think that regexp must be implemented in our Control Center before saving/retrieving admin useres to/from Chef. |
…wercase letters, numbers, hyphen and underscore
Testing with different usernames in the Chef Server administration area I noticed that the usernames must be in lower case and the "~" characters also is forbidden. |
…dmits lowercase letters, numbers, hyphen and underscore" This reverts commit ccaa6d5.
In corporative world usernames with dots (separating first name and last name, for example) are very common.
Control Center admin users can not include a dot, possibly due to a Chef constraint.
However, workstation users in the organizational tree can include dots, as they are translated back and forth to "###" when needed.
Suggestion: A sanitize username function could be useful for both kind of users.
The text was updated successfully, but these errors were encountered: