diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-09-21 09:35:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:56 -0500 |
commit | 4ab70e8438361fd41b71c959d0d20137959a51ea (patch) | |
tree | e9de7c076c3fa23b2a311969b3e1e5444062df9a /source3 | |
parent | 8ad224663576b32a4bcd43f808851d2cdde34656 (diff) | |
download | samba-4ab70e8438361fd41b71c959d0d20137959a51ea.tar.gz samba-4ab70e8438361fd41b71c959d0d20137959a51ea.tar.bz2 samba-4ab70e8438361fd41b71c959d0d20137959a51ea.zip |
r25270: for internal domains we should not ask a remote DC.
metze
(This used to be commit 579ed8ae87e449dbd5e4f78609754df0556fbf68)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_misc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_misc.c b/source3/winbindd/winbindd_misc.c index 1f23bf1bee..30386cc6eb 100644 --- a/source3/winbindd/winbindd_misc.c +++ b/source3/winbindd/winbindd_misc.c @@ -209,12 +209,21 @@ enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain * void winbindd_getdcname(struct winbindd_cli_state *state) { + struct winbindd_domain *domain; + state->request.domain_name [sizeof(state->request.domain_name)-1] = '\0'; DEBUG(3, ("[%5lu]: Get DC name for %s\n", (unsigned long)state->pid, state->request.domain_name)); + domain = find_domain_from_name_noinit(state->request.domain_name); + if (domain && domain->internal) { + fstrcpy(state->response.data.dc_name, global_myname()); + request_ok(state); + return; + } + sendto_domain(state, find_our_domain()); } |