SYSTEM INFORMATION | |
---|---|
Debian 12 | REQUIRED |
Webmin 2.402 | REQUIRED |
When creating a new LDAP User via LDAP Users and Groups, Primary group is always set to “New group with same name as user” even if setting: “Default primary group for new users” is set to a custom group. It looks like this is because the “LDAP Users and Groups” module is missing config option: “Create new group for new users” (new_user_group).
Also, even when adding this and setting to 1, creating a new user selects the “New group” field of “Primary group” instead of “Existing group”.
A quick fix:
in ldap-useradmin/:
in config.info:
add new_user_group=Create new group for new users?,1,1-Yes,0-No,-From Users and Groups module in the “New user options” section
in edit_user.cgi:
change $mconfig{‘new_user_group’} ? 2 : $grp ? 1 : 0 to $mconfig{‘new_user_group’} ? 2 : $grp ? 0 : 1