summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-04 00:07:08 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-04 00:07:08 +0000
commit0dc386855fb341ee820be591d92300d7518f7a7b (patch)
tree0f4f558b32bd4cbe2e1cb431e85fca403410a8e0 /source3
parent15dba42364b6b6286a8ee29cf35c9782910ed56d (diff)
downloadsamba-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)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cliconnect.c4
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 {