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

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