s3:libsmb: avoid cli_set_username() in SMBC_server_internal()
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Sep 2014 01:17:08 +0000 (03:17 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Oct 2014 10:57:07 +0000 (12:57 +0200)
Change-Id: I32e19078a4d4948e405f39dc2a479ff925ad3684
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libsmb/libsmb_server.c

index a258802df40a1390ff2ae8711ee9c434f302b94f..8f68a4089598bf8f94399a990e81039788a9eb50 100644 (file)
@@ -488,13 +488,6 @@ SMBC_server_internal(TALLOC_CTX *ctx,
                 }
        }
 
-       status = cli_set_username(c, username_used);
-       if (!NT_STATUS_IS_OK(status)) {
-               errno = map_errno_from_nt_status(status);
-               cli_shutdown(c);
-               return NULL;
-       }
-
        DEBUG(4,(" session setup ok\n"));
 
        /* here's the fun part....to support 'msdfs proxy' shares