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

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