removed encrypt-password code pre-cli_session_setup(), session setup
authorLuke Leighton <lkcl@samba.org>
Fri, 29 Jan 1999 19:31:52 +0000 (19:31 +0000)
committerLuke Leighton <lkcl@samba.org>
Fri, 29 Jan 1999 19:31:52 +0000 (19:31 +0000)
fn decides whether to encrypt password or not.
(This used to be commit 6d14db6a6c101e86b3c62d5098a05d29ae4e9cd8)

source3/smbwrapper/smbw.c

index dfe99a7ed1afa7cd75e80ba05535cebe8af66d9b..faaa9f047b0537b9aa552f97d010361215a4c1ba 100644 (file)
@@ -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)) {