Make sure that an NTLMSSP negotiate blob has the correct stuff in it!
authorRichard Sharpe <sharpe@samba.org>
Tue, 3 Sep 2002 04:10:58 +0000 (04:10 +0000)
committerRichard Sharpe <sharpe@samba.org>
Tue, 3 Sep 2002 04:10:58 +0000 (04:10 +0000)
(This used to be commit b28267f52c0a5c175b067d7c2d10eca83c20e640)

source3/libsmb/cliconnect.c

index c441cf28a8cc897725fce7a63bc6b9d2dde6dcd8..7ef9b2ab824680f5ab6806505d86fc138d0e4f8c 100644 (file)
@@ -486,11 +486,12 @@ static BOOL cli_session_setup_ntlmssp(struct cli_state *cli, char *user,
        memset(sess_key, 0, 16);
 
        /* generate the ntlmssp negotiate packet */
-       msrpc_gen(&blob, "CddB",
+       msrpc_gen(&blob, "CddAA",
                  "NTLMSSP",
                  NTLMSSP_NEGOTIATE,
                  neg_flags,
-                 sess_key, 16);
+                 workgroup, strlen(workgroup),
+                 cli->calling.name, strlen(cli->calling.name));
 
        /* and wrap it in a SPNEGO wrapper */
        msg1 = gen_negTokenTarg(mechs, blob);