Blame SOURCES/0001-Increment-kvno-after-password-change-with-user-creds.patch

59dcbd
From 5cf1723c308e21cdbe9b98ed2aaa42cb997456fb Mon Sep 17 00:00:00 2001
59dcbd
From: Sumit Bose <sbose@redhat.com>
59dcbd
Date: Fri, 15 Mar 2019 14:31:12 +0100
59dcbd
Subject: [PATCH] Increment kvno after password change with user creds
59dcbd
59dcbd
Originally only the host credential part was fixed in the context of
59dcbd
https://bugs.freedesktop.org/show_bug.cgi?id=91185. This patch adds the
59dcbd
fix to the case when user credentials are used.
59dcbd
59dcbd
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1642546
59dcbd
---
59dcbd
 library/adenroll.c | 4 ++++
59dcbd
 1 file changed, 4 insertions(+)
59dcbd
59dcbd
diff --git a/library/adenroll.c b/library/adenroll.c
59dcbd
index e02f403..58362c2 100644
59dcbd
--- a/library/adenroll.c
59dcbd
+++ b/library/adenroll.c
59dcbd
@@ -1057,6 +1057,10 @@ set_password_with_user_creds (adcli_enroll *enroll)
59dcbd
 #endif
59dcbd
 	} else {
59dcbd
 		_adcli_info ("Set computer password");
59dcbd
+		if (enroll->kvno > 0) {
59dcbd
+			enroll->kvno++;
59dcbd
+			_adcli_info ("kvno incremented to %d", enroll->kvno);
59dcbd
+		}
59dcbd
 		res = ADCLI_SUCCESS;
59dcbd
 	}
59dcbd
 
59dcbd
-- 
59dcbd
2.20.1
59dcbd