Put back the code that actually modify the account,
authoridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 27 Feb 2006 14:45:27 +0000 (14:45 +0000)
committeridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 27 Feb 2006 14:45:27 +0000 (14:45 +0000)
removed, I presume by mistake, by Jerry in the recent
patch the removes the primary group SID stuff.

set_user_info_21 is called to update many other things
like the description of a user for example (that's what
failed on me).

Jerry, please review this one.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13715 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/rpc_server/srv_samr_nt.c

index fa5b080634402d986c96b565a5655f078a078980..de6c28a38dbbb45e93b31a53c49d1ad56b031ca0 100644 (file)
@@ -3132,6 +3132,12 @@ static NTSTATUS set_user_info_21(TALLOC_CTX *mem_ctx, SAM_USER_INFO_21 *id21,
           primary group SID is generated solely from the user's Unix 
           primary group. */
 
+       /* write the change out */
+       if(!NT_STATUS_IS_OK(status = pdb_update_sam_account(pwd))) {
+               TALLOC_FREE(pwd);
+               return status;
+       }
+
        TALLOC_FREE(pwd);
 
        return NT_STATUS_OK;