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

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