mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Update check for whether or not the runas user was set in the ldap
and sssd backends to match the sudoers file backend. Introduces the runas_user_set() macro to improve readability. Previously, runas_pw was set late, now it is set before checking sudoers.
This commit is contained in:
@@ -568,7 +568,7 @@ sudo_sss_check_runas_user(struct sudo_sss_handle *handle, struct sss_sudo_rule *
|
||||
int ret = false, i;
|
||||
debug_decl(sudo_sss_check_runas_user, SUDOERS_DEBUG_SSSD);
|
||||
|
||||
if (!runas_pw)
|
||||
if (!runas_user_set())
|
||||
debug_return_int(UNSPEC);
|
||||
|
||||
/* get the runas user from the entry */
|
||||
|
Reference in New Issue
Block a user