File 0024-Increment-kvno-after-password-change-with-user-creds.patch of Package adcli (Revision ce46d0e7322eb68daa00b5c190e5847d)
Currently displaying revision ce46d0e7322eb68daa00b5c190e5847d , Show latest
xxxxxxxxxx
1
From dd288de866d25058f06eb45084e7e80dadebae14 Mon Sep 17 00:00:00 2001
2
From: Sumit Bose <sbose@redhat.com>
3
Date: Fri, 15 Mar 2019 14:31:12 +0100
4
Subject: [PATCH 24/25] Increment kvno after password change with user creds
5
6
Originally only the host credential part was fixed in the context of
7
https://bugs.freedesktop.org/show_bug.cgi?id=91185. This patch adds the
8
fix to the case when user credentials are used.
9
10
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1642546
11
---
12
library/adenroll.c | 4 ++++
13
1 file changed, 4 insertions(+)
14
15
diff --git a/library/adenroll.c b/library/adenroll.c
16
index 53bd440..6a17d92 100644
17
--- a/library/adenroll.c
18
+++ b/library/adenroll.c
19
20
#endif
21
} else {
22
_adcli_info ("Set computer password");
23
+ if (enroll->kvno > 0) {
24
+ enroll->kvno++;
25
+ _adcli_info ("kvno incremented to %d", enroll->kvno);
26
+ }
27
res = ADCLI_SUCCESS;
28
}
29
30
--
31
2.16.4
32
33