0001-user-create-unix-set-memberUid-attribute-in-primary-.patch
root/etc/e-smith/events/actions/user-create-unix | ||
---|---|---|
108 | 108 | |
109 | 109 |
$acct->set_prop('__state', 'new'); |
110 | 110 | |
111 |
if( ! $directory->addGroupMembers($userName, $userName)) { |
|
112 |
warn "[ERROR] failed to set $userName as member of its primary group\n"; |
|
113 |
$errors ++; |
|
114 |
} |
|
115 | ||
111 | 116 |
if( ! $directory->addGroupMembers('locals', $userName)) { |
112 | 117 |
warn "[ERROR] failed to add member to \"locals\" group\n"; |
113 | 118 |
$errors ++; |