mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Fix logic for verifypw/listpw all in sudoers LDAP and sssd.
This commit is contained in:
@@ -3008,8 +3008,8 @@ sudo_ldap_lookup(struct sudo_nss *nss, int ret, int pwflag)
|
||||
for (i = 0; i < lres->nentries; i++) {
|
||||
entry = lres->entries[i].entry;
|
||||
if ((pwcheck == any && doauth != false) ||
|
||||
(pwcheck == all && doauth == false)) {
|
||||
doauth = sudo_ldap_check_bool(ld, entry, "authenticate");
|
||||
(pwcheck == all && doauth != true)) {
|
||||
doauth = !!sudo_ldap_check_bool(ld, entry, "authenticate");
|
||||
}
|
||||
/* Only check the command when listing another user. */
|
||||
if (user_uid == 0 || list_pw == NULL ||
|
||||
|
Reference in New Issue
Block a user