From 576c597ae38e788bc3c16efc5417e7481c673add Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 28 Aug 2013 15:00:06 +0200 Subject: s3-winbindd: use find_domain_from_name() instead of find_domain_from_name_no_init(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise there is a good chance the domain has not been connected and we don't know the realm name yet. Guenther Signed-off-by: Günther Deschner Reviewed-by: Michael Adam --- source3/winbindd/winbindd_ads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c index d6eb4b4186..7aa936bfa1 100644 --- a/source3/winbindd/winbindd_ads.c +++ b/source3/winbindd/winbindd_ads.c @@ -151,12 +151,12 @@ ADS_STATUS ads_idmap_cached_connection(ADS_STRUCT **adsp, const char *dom_name) DEBUG(10, ("ldap_server from saf cache: '%s'\n", ldap_server ? ldap_server : "")); - wb_dom = find_domain_from_name_noinit(dom_name); + wb_dom = find_domain_from_name(dom_name); if (wb_dom == NULL) { DEBUG(10, ("could not find domain '%s'\n", dom_name)); realm = NULL; } else { - DEBUG(10, ("find_domain_from_name_noinit found realm '%s' for " + DEBUG(10, ("find_domain_from_name found realm '%s' for " " domain '%s'\n", wb_dom->alt_name, dom_name)); realm = wb_dom->alt_name; } -- cgit