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

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