summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/password.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 6be2989881..0c720b6a29 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -1272,8 +1272,7 @@ use this machine as the password server.\n"));
************************************************************************/
static BOOL connect_to_domain_password_server(struct cli_state *pcli,
- char *server,
- unsigned char *trust_passwd)
+ char *server, unsigned char *trust_passwd)
{
struct in_addr dest_ip;
fstring remote_machine;
@@ -1573,9 +1572,9 @@ BOOL domain_client_validate( char *user, char *domain,
/*
* Get the machine account password for our primary domain
*/
- if (!secrets_fetch_trust_account_password(domain, trust_passwd, &last_change_time))
+ if (!secrets_fetch_trust_account_password(global_myworkgroup, trust_passwd, &last_change_time))
{
- DEBUG(0, ("domain_client_validate: could not fetch trust account password for domain %s\n", domain));
+ DEBUG(0, ("domain_client_validate: could not fetch trust account password for domain %s\n", global_myworkgroup));
return False;
}