s3: Make pdb_copy_sam_account also copy the group sid
authorVolker Lendecke <vl@samba.org>
Sun, 31 Jan 2010 14:18:51 +0000 (15:18 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Feb 2010 11:02:47 +0000 (12:02 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit b99046fed1bf4a908ed856afb17c3c934c6d305d)
(cherry picked from commit a1862c23346959cd0aa77653bf488e0686d14376)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/passdb/passdb.c

index aad16daf95e987d1eabf518bea8453e87e28404e..6ba67ef9a735420fb3374daf0a2d4567931c27b2 100644 (file)
@@ -2077,6 +2077,10 @@ bool pdb_copy_sam_account(struct samu *dst, struct samu *src )
                }
        }
 
+       if (src->group_sid) {
+               pdb_set_group_sid(dst, src->group_sid, PDB_SET);
+       }
+
        free(buf);
        return True;
 }