summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-01 21:47:30 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-01 21:47:30 +0000
commitc15b95cd1ede75b38d3a2c5192f2d1fd2a310c9a (patch)
tree5ef4d14e9c83241a41af3a6767ab5044b1888c0f /source3
parent720ea1e3046426ae6c03b0654211cd99ea7cc6e0 (diff)
downloadsamba-c15b95cd1ede75b38d3a2c5192f2d1fd2a310c9a.tar.gz
samba-c15b95cd1ede75b38d3a2c5192f2d1fd2a310c9a.tar.bz2
samba-c15b95cd1ede75b38d3a2c5192f2d1fd2a310c9a.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/password.c6
1 files changed, 4 insertions, 2 deletions
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;
}