summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}