mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-02 07:15:27 +00:00
Take a stab at ldap sudoers support here.
This commit is contained in:
@@ -872,8 +872,14 @@ check_execv(fd, pid, seqnr, askp, cookie, policyp, errorp)
|
|||||||
def_authenticate = FALSE;
|
def_authenticate = FALSE;
|
||||||
runas_pw = info->pw;
|
runas_pw = info->pw;
|
||||||
user_runas = &info->pw->pw_name;
|
user_runas = &info->pw->pw_name;
|
||||||
rewind(sudoers_fp);
|
#ifdef HAVE_LDAP
|
||||||
validated = sudoers_lookup(0);
|
validated = sudo_ldap_check(pwflag);
|
||||||
|
if (!def_ignore_local_sudoers && !ISSET(validated, VALIDATE_OK))
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
rewind(sudoers_fp);
|
||||||
|
validated = sudoers_lookup(0);
|
||||||
|
}
|
||||||
if (ISSET(validated, VALIDATE_OK)) {
|
if (ISSET(validated, VALIDATE_OK)) {
|
||||||
*policyp = SYSTR_POLICY_PERMIT;
|
*policyp = SYSTR_POLICY_PERMIT;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user