CVS update: samba/source/smbwrapper

lkcl at samba.anu.edu.au lkcl at samba.anu.edu.au
Wed Jan 27 11:08:33 EST 1999


Date:	Wednesday January 27, 1999 @ 11:08
Author:	lkcl

Update of /data/cvs/samba/source/smbwrapper
In directory samba:/tmp/cvs-serv26503/smbwrapper

Modified Files:
	smbw.c 
Log Message:

- 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



More information about the samba-cvs mailing list