From c15b95cd1ede75b38d3a2c5192f2d1fd2a310c9a Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Wed, 1 Dec 1999 21:47:30 +0000 Subject: cli_session_setup() now takes an extra argument (host name). hey, what 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/smbd/password.c b/source3/smbd/password.c index fa6f2b06e3..3e4a856bfb 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -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; } -- cgit