From 1a07a93be20376dc8c2e429b8b40831f4d4ef796 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 13 Oct 2003 14:03:06 +0000 Subject: make sure to use the escaped DN; patch from Guenther Deschner; bug 592 (This used to be commit 5eca81c66096a01eda1731892d044c09d4c18556) --- source3/nsswitch/winbindd_ads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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