smbldap-useradd should set gecos and displayName to username if none specified.
Bug #68386 reported by
Zach
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
smbldap-tools (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
When adding a user with the smbldap-useradd script, the gecos attribute, and, by extension, the displayName attribute are determined by the "userGecos=" option in smbldap.conf. This usually is set to "System User". As a result, all users get "System User" for their gecos and displayName. This is especially frustrating for windows users whose name displayed in the start menu (and presumably other places) is "System User" rather than something that uniquely identifies them such as username.
The script should default to something more reasonable such as username if no '-c' option is specified.
Changed in smbldap-tools: | |
assignee: | andrea-bs → nobody |
To post a comment you must log in.
I am attaching a diff that addresses this behavior in the smbldap-useradd script.
The patch causes the script to first get the $config{userGecos} value from $Options{'c'} if defined, and otherwise from $userName.
This assignment is based on the $givenName and $userSN assignments which are very similar.