mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
For ldap/sssd, include defaults in the generate privilege unless
we are listing in short mode (in which case we convert them to tags if possible). Fixes a problem where sudoOptions were not being applied to the command.
This commit is contained in:
@@ -356,7 +356,7 @@ sss_to_sudoers(struct sudo_sss_handle *handle,
|
||||
|
||||
priv = sudo_ldap_role_to_priv(cn, hosts, runasusers, runasgroups,
|
||||
cmnds, opts, notbefore ? notbefore[0] : NULL,
|
||||
notafter ? notafter[0] : NULL, false, long_list, val_array_iter);
|
||||
notafter ? notafter[0] : NULL, false, !short_list, val_array_iter);
|
||||
|
||||
cleanup:
|
||||
if (cn_array != NULL)
|
||||
|
Reference in New Issue
Block a user