2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Take a stab at ldap sudoers support here.

This commit is contained in:
Todd C. Miller
2004-10-05 20:53:29 +00:00
parent 385dfb2696
commit a7d63df1fb

View File

@@ -872,8 +872,14 @@ check_execv(fd, pid, seqnr, askp, cookie, policyp, errorp)
def_authenticate = FALSE;
runas_pw = info->pw;
user_runas = &info->pw->pw_name;
rewind(sudoers_fp);
validated = sudoers_lookup(0);
#ifdef HAVE_LDAP
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)) {
*policyp = SYSTR_POLICY_PERMIT;
} else {