diff options
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 11b220eec6..2c26414b27 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -604,9 +604,11 @@ NTSTATUS create_local_token(TALLOC_CTX *mem_ctx, return NT_STATUS_NO_MEMORY; } - /* Start at index 1, where the groups start. */ + for (i=0; i<t->num_sids; i++) { - for (i=1; i<t->num_sids; i++) { + if (i == 0 && ids[i].type != WBC_ID_TYPE_BOTH) { + continue; + } if (ids[i].type != WBC_ID_TYPE_GID && ids[i].type != WBC_ID_TYPE_BOTH) { |