Blame SOURCES/sudo-1.8.6p7-authlogicfix.patch

72fdaf
diff -up sudo-1.8.6p7/plugins/sudoers/ldap.c.authlogicfix sudo-1.8.6p7/plugins/sudoers/ldap.c
72fdaf
--- sudo-1.8.6p7/plugins/sudoers/ldap.c.authlogicfix	2015-07-05 13:40:15.389145839 +0200
72fdaf
+++ sudo-1.8.6p7/plugins/sudoers/ldap.c	2015-07-05 13:40:15.413145478 +0200
72fdaf
@@ -2392,9 +2392,13 @@ sudo_ldap_lookup(struct sudo_nss *nss, i
72fdaf
 	for (i = 0; i < lres->nentries; i++) {
72fdaf
 	    entry = lres->entries[i].entry;
72fdaf
 	    if ((pwcheck == any && doauth != false) ||
72fdaf
-		(pwcheck == all && doauth == false)) {
72fdaf
-		doauth = sudo_ldap_check_bool(ld, entry, "authenticate");
72fdaf
+		(pwcheck == all && doauth != true)) {
72fdaf
+		doauth = !!sudo_ldap_check_bool(ld, entry, "authenticate");
72fdaf
 	    }
72fdaf
+	}
72fdaf
+
72fdaf
+	for (i = 0; i < lres->nentries; i++) {
72fdaf
+	    entry = lres->entries[i].entry;
72fdaf
 	    /* Only check the command when listing another user. */
72fdaf
 	    if (user_uid == 0 || list_pw == NULL ||
72fdaf
 		user_uid == list_pw->pw_uid ||
72fdaf
diff -up sudo-1.8.6p7/plugins/sudoers/sssd.c.authlogicfix sudo-1.8.6p7/plugins/sudoers/sssd.c
72fdaf
--- sudo-1.8.6p7/plugins/sudoers/sssd.c.authlogicfix	2015-07-05 13:40:15.412145494 +0200
72fdaf
+++ sudo-1.8.6p7/plugins/sudoers/sssd.c	2015-07-05 13:40:15.414145463 +0200
72fdaf
@@ -970,9 +970,13 @@ sudo_sss_lookup(struct sudo_nss *nss, in
72fdaf
 	    for (i = 0; i < sss_result->num_rules; i++) {
72fdaf
 		rule = sss_result->rules + i;
72fdaf
 		if ((pwcheck == any && doauth != false) ||
72fdaf
-		    (pwcheck == all && doauth == false)) {
72fdaf
-		    doauth = sudo_sss_check_bool(handle, rule, "authenticate");
72fdaf
+		    (pwcheck == all && doauth != true)) {
72fdaf
+		    doauth = !!sudo_sss_check_bool(handle, rule, "authenticate");
72fdaf
 		}
72fdaf
+	    }
72fdaf
+
72fdaf
+	    for (i = 0; i < sss_result->num_rules; i++) {
72fdaf
+		rule = sss_result->rules + i;	    
72fdaf
 		/* Only check the command when listing another user. */
72fdaf
 		if (user_uid == 0 || list_pw == NULL ||
72fdaf
 		    user_uid == list_pw->pw_uid ||