0001-user-create-unix-set-memberUid-attribute-in-primary-.patch

nethserver-directory-fix - Davide Principi, 09/26/2014 08:57 AM

Download (3.31 KB)

View differences:

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 ++;