summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-10-13 14:06:27 +0000
committerGerald Carter <jerry@samba.org>2003-10-13 14:06:27 +0000
commit447fa1f2242006cd002598bf8d944e63a824ff86 (patch)
treedebb9d8dba70ca1cdbabad28bf197fe44d7fa4a0
parent3a26c9f37f4cfa296de3bb23b97c27e5b20989f7 (diff)
downloadsamba-447fa1f2242006cd002598bf8d944e63a824ff86.tar.gz
samba-447fa1f2242006cd002598bf8d944e63a824ff86.tar.bz2
samba-447fa1f2242006cd002598bf8d944e63a824ff86.zip
make sure to use the escaped DN; patch from Guenther Deschner; bug 592
(This used to be commit fe6aa4a95181bb2ad4352710cfc7868918609274)
-rw-r--r--source3/nsswitch/winbindd_ads.c2
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);