mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 15:55:40 +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:
@@ -960,7 +960,7 @@ sudo_ldap_build_default_filter()
|
|||||||
char *filt;
|
char *filt;
|
||||||
|
|
||||||
if (ldap_conf.search_filter)
|
if (ldap_conf.search_filter)
|
||||||
easprintf(&filt, "(&(%s)(cn=defaults))", ldap_conf.search_filter);
|
easprintf(&filt, "(&%s(cn=defaults))", ldap_conf.search_filter);
|
||||||
else
|
else
|
||||||
filt = estrdup("cn=defaults");
|
filt = estrdup("cn=defaults");
|
||||||
return filt;
|
return filt;
|
||||||
|
Reference in New Issue
Block a user