2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

Remove extraneous parens in LDAP filter when sudoers_search_filter

is enabled that causes a search error.  From Matthew Thomas.
This commit is contained in:
Todd C. Miller
2011-04-12 11:48:04 -04:00
parent 2af2174092
commit b00cf92eff

View File

@@ -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;