From 34f2b273d74fa9ffaec540b6c3c3c9dbfe382c0e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 29 Feb 2008 13:33:50 +0100 Subject: [PATCH] fixes wb-ndr: remove unused WINBINDD_DUAL_DSGETDCNAME support metze Conflicts: source/winbindd/winbindd_locator.c --- source/winbindd/winbindd_locator.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/winbindd/winbindd_locator.c b/source/winbindd/winbindd_locator.c index 340c942b184..25314c16588 100644 --- a/source/winbindd/winbindd_locator.c +++ b/source/winbindd/winbindd_locator.c @@ -132,7 +132,7 @@ static void ndr_child_get_dc_info_comapt_ds(struct winbindd_domain *domain, struct winbind_get_dc_info *r) { NTSTATUS result; - struct DS_DOMAIN_CONTROLLER_INFO *info = NULL; + struct netr_DsRGetDCNameInfo *info = NULL; const char *dc = NULL; DEBUG(3, ("dsgetdcname for '%s'\n", r->in.domain_name)); @@ -145,15 +145,15 @@ static void ndr_child_get_dc_info_comapt_ds(struct winbindd_domain *domain, return; } - if (info->domain_controller_address) { - dc = info->domain_controller_address; + if (info->dc_address) { + dc = info->dc_address; if ((dc[0] == '\\') && (dc[1] == '\\')) { dc += 2; } } - if ((!dc || !is_ipaddress_v4(dc)) && info->domain_controller_name) { - dc = info->domain_controller_name; + if ((!dc || !is_ipaddress_v4(dc)) && info->dc_unc) { + dc = info->dc_unc; } if (!dc || !*dc) { -- 2.34.1