summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_trust.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-11-29 05:50:32 +0000
committerTim Potter <tpot@samba.org>2001-11-29 05:50:32 +0000
commitff27a326f17223cba12b7e0b41ec84aad8238385 (patch)
treed1374839939104a08f1f309cab2004e223b9656c /source3/rpc_client/cli_trust.c
parent5bfc7214afb23984acc7aba9fd7a57eec7c18d6d (diff)
downloadsamba-ff27a326f17223cba12b7e0b41ec84aad8238385.tar.gz
samba-ff27a326f17223cba12b7e0b41ec84aad8238385.tar.bz2
samba-ff27a326f17223cba12b7e0b41ec84aad8238385.zip
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)
Diffstat (limited to 'source3/rpc_client/cli_trust.c')
-rw-r--r--source3/rpc_client/cli_trust.c2
1 files changed, 1 insertions, 1 deletions
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)))