summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-10-13 14:03:06 +0000
committerGerald Carter <jerry@samba.org>2003-10-13 14:03:06 +0000
commit1a07a93be20376dc8c2e429b8b40831f4d4ef796 (patch)
tree7a8a2fb0eb7e35621c60089b63afad26f7520fe2 /source3
parenta98fc57af90be19f8449e0d0df4059eeaff4e2c8 (diff)
downloadsamba-1a07a93be20376dc8c2e429b8b40831f4d4ef796.tar.gz
samba-1a07a93be20376dc8c2e429b8b40831f4d4ef796.tar.bz2
samba-1a07a93be20376dc8c2e429b8b40831f4d4ef796.zip
make sure to use the escaped DN; patch from Guenther Deschner; bug 592
(This used to be commit 5eca81c66096a01eda1731892d044c09d4c18556)
Diffstat (limited to 'source3')
-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);