]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-auth: Pass nt_username to check_account()
authorAndreas Schneider <asn@samba.org>
Wed, 19 Aug 2015 14:24:08 +0000 (16:24 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Aug 2015 08:08:20 +0000 (10:08 +0200)
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 <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit e8c76932e4ac192a00afa3b9731f5921c4b37da6)

source3/auth/auth_util.c

index dcf173d74e7daaa14a236eed1069ac1eaf5f3a34..688072eb208845980e1679ed9919182fbf458fbb 100644 (file)
@@ -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 */