summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_ad.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/idmap_ad.c')
-rw-r--r--source3/winbindd/idmap_ad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c
index 91eb7c7c96..32a3e17069 100644
--- a/source3/winbindd/idmap_ad.c
+++ b/source3/winbindd/idmap_ad.c
@@ -143,10 +143,11 @@ static ADS_STATUS ad_idmap_cached_connection_internal(struct idmap_domain *dom)
/* setup server affinity */
get_dc_name(dom->name, realm, dc_name, &dc_ip );
-
+
status = ads_connect(ads);
if (!ADS_ERR_OK(status)) {
- DEBUG(1, ("ad_idmap_init: failed to connect to AD\n"));
+ DEBUG(1, ("ad_idmap_cached_connection_internal: failed to "
+ "connect to AD\n"));
ads_destroy(&ads);
return status;
}