summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-08-28 15:00:06 +0200
committerKarolin Seeger <kseeger@samba.org>2013-08-30 10:22:43 +0200
commitf486e864dd8608976fb405c328dc0e811d374685 (patch)
tree0ffb07b23e4ae124fb0b231c9abfae49e5086ce6
parentae20e2d0918fd321f0bd9cfe88d5f15ab6e585b0 (diff)
downloadsamba-f486e864dd8608976fb405c328dc0e811d374685.tar.gz
s3-winbindd: use find_domain_from_name() instead of find_domain_from_name_no_init().
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 <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source3/winbindd/winbindd_ads.c4
1 files 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;
}