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

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