summaryrefslogtreecommitdiff
path: root/source3/rpcclient/rpcclient.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-01-27 00:08:33 +0000
committerLuke Leighton <lkcl@samba.org>1999-01-27 00:08:33 +0000
commit4af8d7aa2925569d55f33b2844882089c5569691 (patch)
treeb29825b3baa8353e7ecd94e988628731e62089ca /source3/rpcclient/rpcclient.c
parent0637d46d6083fb2969fadf3211e0d91298b7ca28 (diff)
downloadsamba-4af8d7aa2925569d55f33b2844882089c5569691.tar.gz
samba-4af8d7aa2925569d55f33b2844882089c5569691.tar.bz2
samba-4af8d7aa2925569d55f33b2844882089c5569691.zip
- got client code cleartext passwords working again in cli_session_setup.
needed this for some tests. - removed code that said "if lm password is not encrypted then encrypt both lm and nt passwords". actually it said "if lm password length is not 24 bytes and we're in security=user mode..." it didn't bother to check whether the nt password was NULL or not, and doing the encryption inside cli_session_setup is the wrong place. - checked all instances where cli_session_setup is called with cleartext passwords that are expected to then be encrypted (see above) with the test "if pwlen != 24...". there was only one: all the others either provide encrypted passwords, do null sessions or use cli_establish_connection. * recommendation: use cli_establish_connection() in smbwrapper/smbw.c (This used to be commit 2a509e9606f8aefbefa6e7b49878726464dbed44)
Diffstat (limited to 'source3/rpcclient/rpcclient.c')
-rw-r--r--source3/rpcclient/rpcclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index ceaefb98bc..f2926276bc 100644
--- a/source3/rpcclient/rpcclient.c
+++ b/source3/rpcclient/rpcclient.c
@@ -739,7 +739,8 @@ enum client_action
}
else
{
- pwd_make_lm_nt_16(&(smb_cli->pwd), password); /* generate 16 byte hashes */
+ /* generate 16 byte hashes */
+ pwd_make_lm_nt_16(&(smb_cli->pwd), password);
}
}
else