- got client code cleartext passwords working again in cli_session_setup.
authorLuke Leighton <lkcl@samba.org>
Wed, 27 Jan 1999 00:08:33 +0000 (00:08 +0000)
committerLuke Leighton <lkcl@samba.org>
Wed, 27 Jan 1999 00:08:33 +0000 (00:08 +0000)
commit2a509e9606f8aefbefa6e7b49878726464dbed44
tree92c21eeb9550040a833e39890bd3db97ebd60282
parent03967986ec6a92785b92fefce9e27b8bb088ea85
- 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
source/libsmb/clientgen.c
source/rpcclient/rpcclient.c
source/smbwrapper/smbw.c