From 31ab8ae3ffd5ac3f7af5f5d7157f568c0e6d199f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 25 Jun 2001 19:08:30 +0000 Subject: Fixed stupid typo that would stop trusted domains working. Jeremy. (This used to be commit fa721b4adfbcac4827251b02f6af7f0b5211c104) --- source3/smbd/password.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3') 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; } -- cgit