From: Andreas Schneider Date: Wed, 19 Aug 2015 14:24:08 +0000 (+0200) Subject: s3-auth: Pass nt_username to check_account() X-Git-Tag: samba-4.2.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=175e73d006b9166e8edfde1d963ff6d023463d81;p=thirdparty%2Fsamba.git s3-auth: Pass nt_username to check_account() We set nt_username above but do not use it in this function. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9862 Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner (cherry picked from commit e8c76932e4ac192a00afa3b9731f5921c4b37da6) --- diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index dcf173d74e7..688072eb208 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1392,9 +1392,12 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx, /* this call will try to create the user if necessary */ - nt_status = check_account(mem_ctx, nt_domain, sent_nt_username, - &found_username, &pwd, - &username_was_mapped); + nt_status = check_account(mem_ctx, + nt_domain, + nt_username, + &found_username, + &pwd, + &username_was_mapped); if (!NT_STATUS_IS_OK(nt_status)) { /* Handle 'map to guest = Bad Uid */