diff options
Diffstat (limited to 'source3/nsswitch/winbindd_ads.c')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |