diff options
author | Luke Leighton <lkcl@samba.org> | 1999-01-29 19:31:52 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-01-29 19:31:52 +0000 |
commit | 5a9859c7b0e1d22cd92b3a512690c5113c1bd51b (patch) | |
tree | 9925a2238c545a6fd9a6bf3d9c9206ceec6ae1db /source3 | |
parent | 206013169c77cb0bb8f9db2476dba53509503846 (diff) | |
download | samba-5a9859c7b0e1d22cd92b3a512690c5113c1bd51b.tar.gz samba-5a9859c7b0e1d22cd92b3a512690c5113c1bd51b.tar.bz2 samba-5a9859c7b0e1d22cd92b3a512690c5113c1bd51b.zip |
removed encrypt-password code pre-cli_session_setup(), session setup
fn decides whether to encrypt password or not.
(This used to be commit 6d14db6a6c101e86b3c62d5098a05d29ae4e9cd8)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbwrapper/smbw.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c index dfe99a7ed1..faaa9f047b 100644 --- a/source3/smbwrapper/smbw.c +++ b/source3/smbwrapper/smbw.c @@ -403,7 +403,6 @@ struct smbw_server *smbw_server(char *server, char *share) pstring ipenv; struct in_addr ip; extern struct in_addr ipzero; - char lm_24[24], nt_24[24]; ip = ipzero; ZERO_STRUCT(c); @@ -489,12 +488,9 @@ struct smbw_server *smbw_server(char *server, char *share) return NULL; } - SMBencrypt ((uchar *)password,(uchar *)c.cryptkey,(uchar *)lm_24); - SMBNTencrypt((uchar *)password,(uchar *)c.cryptkey,(uchar *)nt_24); - if (!cli_session_setup(&c, username, - lm_24, 24, - nt_24, 24, + password, strlen(password), + password, strlen(password), workgroup) && /* try an anonymous login if it failed */ !cli_session_setup(&c, "", "", 1,"", 0, workgroup)) { |