s3:auth/server_info: the primary rid should be in the groups rid array (bug #8798)
authorAlejandro Escanero Blanco <aescanero@gmail.com>
Wed, 9 May 2012 09:35:51 +0000 (11:35 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 May 2012 11:54:59 +0000 (13:54 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May  9 19:36:01 CEST 2012 on sn-devel-104
(cherry picked from commit 6132cf2a5cd77c79546a2d6cc3fbf3c93f54183b)

source3/auth/server_info.c

index 5b8ae1bc55746f75ba7bae6cbf8e32018987888c..2e94e46283ad3536b4719b7743a414d4a3f9a7a0 100644 (file)
@@ -273,11 +273,6 @@ static NTSTATUS group_sids_to_info3(struct netr_SamInfo3 *info3,
        for (i = 0; i < num_sids; i++) {
                ok = sid_peek_check_rid(domain_sid, &sids[i], &rid);
                if (ok) {
-
-                       /* if it is the primary gid, skip it, we
-                        * obviously already have it */
-                       if (info3->base.primary_gid == rid) continue;
-
                        /* store domain group rid */
                        groups->rids[groups->count].rid = rid;
                        groups->rids[groups->count].attributes = attributes;