cli_session_setup() now takes an extra argument (host name). hey, what
authorLuke Leighton <lkcl@samba.org>
Wed, 1 Dec 1999 21:47:30 +0000 (21:47 +0000)
committerLuke Leighton <lkcl@samba.org>
Wed, 1 Dec 1999 21:47:30 +0000 (21:47 +0000)
the heck is a cli_session_setup() call doing in here???  this should use
cli_establish_connection()server!
(This used to be commit fa054c96c62ed0f0a0c6649a7ad7a143fe09694b)

source3/smbd/password.c

index fa6f2b06e3bc990608f7f1a871dd7fc6e1af9eba..3e4a856bfb82379b45866ac208ef6bcf0470dc37 100644 (file)
@@ -1042,7 +1042,8 @@ BOOL server_validate(char *user, char *domain,
    */
 
   if(!tested_password_server) {
-    if (cli_session_setup(cli, user, (char *)badpass, sizeof(badpass), 
+    if (cli_session_setup(cli, global_myname,
+                              user, (char *)badpass, sizeof(badpass), 
                               (char *)badpass, sizeof(badpass), domain)) {
 
       /*
@@ -1087,7 +1088,8 @@ use this machine as the password server.\n"));
    * not guest enabled, we can try with the real password.
    */
 
-  if (!cli_session_setup(cli, user, pass, passlen, ntpass, ntpasslen, domain)) {
+  if (!cli_session_setup(cli, global_myname,
+                              user, pass, passlen, ntpass, ntpasslen, domain)) {
     DEBUG(1,("password server %s rejected the password\n", cli->desthost));
     return False;
   }