mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 15:55:40 +00:00
sudo should not send mail if someone who runs 'sudo -l' has no entry.
This commit is contained in:
3
ldap.c
3
ldap.c
@@ -956,7 +956,8 @@ int pwflag;
|
|||||||
} else {
|
} else {
|
||||||
/* we do not have a match */
|
/* we do not have a match */
|
||||||
ret=VALIDATE_NOT_OK;
|
ret=VALIDATE_NOT_OK;
|
||||||
if (!ldap_user_matches) SET(ret,FLAG_NO_USER);
|
if (pwflag) SET(ret,FLAG_NO_CHECK);
|
||||||
|
else if (!ldap_user_matches) SET(ret,FLAG_NO_USER);
|
||||||
else if (!ldap_host_matches) SET(ret,FLAG_NO_HOST);
|
else if (!ldap_host_matches) SET(ret,FLAG_NO_HOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user