From ff27a326f17223cba12b7e0b41ec84aad8238385 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 29 Nov 2001 05:50:32 +0000 Subject: I think the lookup_pdc_name() should be called lookup_dc_name() and the name_status_find() call here should look up a #1c name instead of #1d. This fixes some bugs currently with BDC authentication in winbindd and in smbd as you can't query the #1d name with the ip address of a BDC. Who is Uncle Tom Cobbley anyway? (This used to be commit 4215048f7b20a8f9e5877bdbb2f54841b2f7fa64) --- source3/rpc_client/cli_trust.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_client') diff --git a/source3/rpc_client/cli_trust.c b/source3/rpc_client/cli_trust.c index a12f4035ee..c910e2f334 100644 --- a/source3/rpc_client/cli_trust.c +++ b/source3/rpc_client/cli_trust.c @@ -213,7 +213,7 @@ account password for domain %s.\n", domain)); for(i = 0; i < count; i++) { fstring dc_name; - if(!lookup_pdc_name(global_myname, domain, &ip_list[i], dc_name)) + if(!lookup_dc_name(global_myname, domain, &ip_list[i], dc_name)) continue; if((res = modify_trust_password( domain, dc_name, old_trust_passwd_hash, new_trust_passwd_hash))) -- cgit