Azure / nxtools

Azure Automanage Machine Configuration Linux DSC resources
Other
13 stars 11 forks source link

Fix nxUser regex #39

Closed gurrajatwal closed 11 months ago

gurrajatwal commented 11 months ago

Pull Request (PR) description

The nxUser resource fails if any users in /etc/passwd have uppercase letters in their username. According to the manpage for adduser,

Historically, adduser and addgroup enforced conformity to IEEE Std 1003.1-2001, which allows only the following characters to appear in group and user names: letters, digits, underscores, periods, at signs (@) and dashes. The name may not start with a dash or @. The "$" sign is allowed at the end of usernames (to conform to samba). https://manpages.ubuntu.com/manpages/lunar/en/man5/adduser.conf.5.html

I was able to create usernames with capital letters and with periods, at signs, etc. as described in the statement above on Ubuntu 18. So, I'm updating the regex.

This Pull Request (PR) fixes the following issues

Task list