From 447fa1f2242006cd002598bf8d944e63a824ff86 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 13 Oct 2003 14:06:27 +0000 Subject: make sure to use the escaped DN; patch from Guenther Deschner; bug 592 (This used to be commit fe6aa4a95181bb2ad4352710cfc7868918609274) --- source3/nsswitch/winbindd_ads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index ef3f0f8fc2..5d0f924d8f 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -364,7 +364,7 @@ static BOOL dn_lookup(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, return False; } - asprintf(&ldap_exp, "(distinguishedName=%s)", dn); + asprintf(&ldap_exp, "(distinguishedName=%s)", escaped_dn); rc = ads_search_retry(ads, &res, ldap_exp, attrs); SAFE_FREE(ldap_exp); SAFE_FREE(escaped_dn); -- cgit