From b00cf92eff8a67eaf194d9b59cf0d872dbfdfae9 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 12 Apr 2011 11:48:04 -0400 Subject: [PATCH] Remove extraneous parens in LDAP filter when sudoers_search_filter is enabled that causes a search error. From Matthew Thomas. --- plugins/sudoers/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/ldap.c b/plugins/sudoers/ldap.c index ab95083b9..8d64c354a 100644 --- a/plugins/sudoers/ldap.c +++ b/plugins/sudoers/ldap.c @@ -960,7 +960,7 @@ sudo_ldap_build_default_filter() char *filt; if (ldap_conf.search_filter) - easprintf(&filt, "(&(%s)(cn=defaults))", ldap_conf.search_filter); + easprintf(&filt, "(&%s(cn=defaults))", ldap_conf.search_filter); else filt = estrdup("cn=defaults"); return filt; -- 2.40.0