From 742ddff3882e35b1ab3a6e2b78066538811ae111 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 8 Dec 2007 00:26:34 +0100 Subject: [PATCH] wb-ndr: remove unused WINBINDD_DUAL_DSGETDCNAME support metze --- source/winbindd/winbindd_locator.c | 44 ------------------------------ 1 file changed, 44 deletions(-) diff --git a/source/winbindd/winbindd_locator.c b/source/winbindd/winbindd_locator.c index 25314c16588..009fd644215 100644 --- a/source/winbindd/winbindd_locator.c +++ b/source/winbindd/winbindd_locator.c @@ -87,46 +87,6 @@ nomem: return; } -static enum winbindd_result dual_dsgetdcname(struct winbindd_domain *domain, - struct winbindd_cli_state *state) -{ - NTSTATUS result; - struct netr_DsRGetDCNameInfo *info = NULL; - const char *dc = NULL; - - state->request.domain_name - [sizeof(state->request.domain_name)-1] = '\0'; - - DEBUG(3, ("[%5lu]: dsgetdcname for %s\n", (unsigned long)state->pid, - state->request.domain_name)); - - result = dsgetdcname(state->mem_ctx, state->request.domain_name, - NULL, NULL, state->request.flags, &info); - - if (!NT_STATUS_IS_OK(result)) { - return WINBINDD_ERROR; - } - - if (info->dc_address) { - dc = info->dc_address; - if ((dc[0] == '\\') && (dc[1] == '\\')) { - dc += 2; - } - } - - if ((!dc || !is_ipaddress_v4(dc)) && info->dc_unc) { - dc = info->dc_unc; - } - - if (!dc || !*dc) { - return WINBINDD_ERROR; - } - - fstrcpy(state->response.data.dc_name, dc); - - return WINBINDD_OK; -} - static void ndr_child_get_dc_info_comapt_ds(struct winbindd_domain *domain, struct winbindd_cli_state *state, struct winbind_get_dc_info *r) @@ -196,10 +156,6 @@ void winbindd_ndr_locator_child_get_dc_info(struct winbindd_domain *domain, static const struct winbindd_child_dispatch_table locator_dispatch_table[] = { { - .name = "DSGETDCNAME", - .struct_cmd = WINBINDD_DSGETDCNAME, - .struct_fn = dual_dsgetdcname, - },{ .name = "NDR_WINBIND_GET_DC_INFO", .ndr_opnum = NDR_WINBIND_GET_DC_INFO, .ndr_fn = winbindd_ndr_locator_child_get_dc_info, -- 2.34.1