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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user