From 16b007c2232cc8432fa9e93409e16367d72b149e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 10 Mar 2011 16:19:17 +0100 Subject: Quite some callers of sid_split_rid do not care about the rid --- source3/auth/token_util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/auth/token_util.c') diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index 4f617c4201..4942740ed0 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -849,8 +849,6 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username, * correct info. AD might prohibit winbind looking up that * information. */ - uint32 dummy; - /* We must always assign the *uid. */ if (!sid_to_uid(&user_sid, uid)) { DEBUG(1, ("winbindd case, sid_to_uid for %s (%s) failed\n", @@ -868,7 +866,7 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username, } sid_copy(&group_sids[0], &user_sid); - sid_split_rid(&group_sids[0], &dummy); + sid_split_rid(&group_sids[0], NULL); sid_append_rid(&group_sids[0], DOMAIN_RID_USERS); if (!sid_to_gid(&group_sids[0], gid)) { -- cgit