summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-08-28 15:00:06 +0200
committerGünther Deschner <gd@samba.org>2013-08-29 16:57:51 +0200
commit576c597ae38e788bc3c16efc5417e7481c673add (patch)
tree48b164a96ee0ecba030b0188f624922ed8b4681c /source3
parent26ab2194f96cee80438c7917bc7de3bb7d48aa64 (diff)
downloadsamba-576c597ae38e788bc3c16efc5417e7481c673add.tar.gz
samba-576c597ae38e788bc3c16efc5417e7481c673add.tar.bz2
samba-576c597ae38e788bc3c16efc5417e7481c673add.zip
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>
Diffstat (limited to 'source3')
-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;
}