diff options
author | Richard Sharpe <sharpe@samba.org> | 2002-09-03 04:10:58 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2002-09-03 04:10:58 +0000 |
commit | 629ad6941e95fef465059c248ea0d99a32be2a98 (patch) | |
tree | afcadd61b7087116a38dcbbc2c0d1d2c598445ef /source3 | |
parent | bb30cd160b7d01b38fb6473d15a9056118d51a42 (diff) | |
download | samba-629ad6941e95fef465059c248ea0d99a32be2a98.tar.gz samba-629ad6941e95fef465059c248ea0d99a32be2a98.tar.bz2 samba-629ad6941e95fef465059c248ea0d99a32be2a98.zip |
Make sure that an NTLMSSP negotiate blob has the correct stuff in it!
(This used to be commit b28267f52c0a5c175b067d7c2d10eca83c20e640)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cliconnect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index c441cf28a8..7ef9b2ab82 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -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); |