diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-04 00:07:08 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-04 00:07:08 +0000 |
commit | 0dc386855fb341ee820be591d92300d7518f7a7b (patch) | |
tree | 0f4f558b32bd4cbe2e1cb431e85fca403410a8e0 | |
parent | 15dba42364b6b6286a8ee29cf35c9782910ed56d (diff) | |
download | samba-0dc386855fb341ee820be591d92300d7518f7a7b.tar.gz samba-0dc386855fb341ee820be591d92300d7518f7a7b.tar.bz2 samba-0dc386855fb341ee820be591d92300d7518f7a7b.zip |
when using non-encrypted password ignore the ntpass variable to
session setup
(This used to be commit c7665706cd5633ede710afe41413624124038238)
-rw-r--r-- | source3/libsmb/cliconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 1494608f8d..512607fc11 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -255,13 +255,13 @@ static BOOL cli_session_setup_nt1(struct cli_state *cli, char *user, } if (passlen != 24) { - /* non encrypted password supplied. */ + /* non encrypted password supplied. Ignore ntpass. */ passlen = 24; ntpasslen = 24; clistr_push(cli, pword, pass?pass:"", sizeof(pword), STR_TERMINATE|STR_ASCII); clistr_push(cli, ntpword, - ntpass?ntpass:"", sizeof(ntpword), STR_TERMINATE|STR_ASCII); + pass?pass:"", sizeof(ntpword), STR_TERMINATE|STR_ASCII); SMBencrypt((uchar *)pword,cli->secblob.data,(uchar *)pword); SMBNTencrypt((uchar *)ntpword,cli->secblob.data,(uchar *)ntpword); } else { |