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 | 6d14db6a6c101e86b3c62d5098a05d29ae4e9cd8 (patch) | |
tree | 066809c9fca3d7cfd7d4adc6a4b8da7c20d8394b /source | |
parent | 14080a564a24f8f35cb8711b912c46f7243cd723 (diff) | |
download | samba-6d14db6a6c101e86b3c62d5098a05d29ae4e9cd8.tar.gz samba-6d14db6a6c101e86b3c62d5098a05d29ae4e9cd8.tar.xz samba-6d14db6a6c101e86b3c62d5098a05d29ae4e9cd8.zip |
removed encrypt-password code pre-cli_session_setup(), session setup
fn decides whether to encrypt password or not.
Diffstat (limited to 'source')
-rw-r--r-- | source/smbwrapper/smbw.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c index dfe99a7ed1a..faaa9f047b0 100644 --- a/source/smbwrapper/smbw.c +++ b/source/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)) { |