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)
committerStefan Metzmacher <metze@samba.org>
Mon, 8 Feb 2010 10:10:17 +0000 (11:10 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/passdb/passdb.c

index 3ced15080373246e514df81d768e2412c0330a1c..ecb609ad5c72d65bc45ee8470863bc581154ec26 100644 (file)
@@ -2079,6 +2079,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;
 }