From ff36902f17caff35e29dc9ab71df80910f1f34df Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 12 Oct 2011 20:52:09 +0200 Subject: [PATCH] TODO s3:auth_util: add the uid with WBC_ID_TYPE_BOTH also to the group array This will help with having "sidHistory" support in future. metze --- source3/auth/auth_util.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 11b220eec6b9..2c26414b2782 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; inum_sids; i++) { - for (i=1; inum_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) { -- 2.34.1