r11859: Another place where the SE_GROUP constants read better then "7".
authorGünther Deschner <gd@samba.org>
Tue, 22 Nov 2005 14:41:40 +0000 (14:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:31 +0000 (11:05 -0500)
Guenther
(This used to be commit 4c4b2096459ffa6ca0130f1259499933e3182d47)

source3/rpc_server/srv_util.c

index 79d5d06d23adfe9c10463a2d5f5df058e0487a9d..3666d4747872cb36d33707a78c85ff86aa45f2f7 100644 (file)
@@ -102,7 +102,7 @@ NTSTATUS nt_token_to_group_list(TALLOC_CTX *mem_ctx, const DOM_SID *domain_sid,
        for (i=PRIMARY_GROUP_SID_INDEX; i < nt_token->num_sids; i++) {
                if (sid_compare_domain(domain_sid, &nt_token->user_sids[i])==0) {
                        sid_peek_rid(&nt_token->user_sids[i], &(gids[*numgroups].g_rid));
-                       gids[*numgroups].attr=7;
+                       gids[*numgroups].attr= (SE_GROUP_MANDATORY|SE_GROUP_ENABLED_BY_DEFAULT|SE_GROUP_ENABLED);
                        (*numgroups)++;
                }
        }