diff options
Diffstat (limited to 'source3/auth/token_util.c')
-rw-r--r-- | source3/auth/token_util.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index 4f617c42014..4942740ed06 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)) { |