summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2019-03-15 14:31:12 +0100
committerSumit Bose <sbose@redhat.com>2019-03-15 14:31:12 +0100
commit5cf1723c308e21cdbe9b98ed2aaa42cb997456fb (patch)
treebd41a549662e39e078de070f79200e626d2c8466 /library
parent41fdcb1af885d99a91e27406e9343b322f67756a (diff)
Increment kvno after password change with user creds
Originally only the host credential part was fixed in the context of https://bugs.freedesktop.org/show_bug.cgi?id=91185. This patch adds the fix to the case when user credentials are used. Related to https://bugzilla.redhat.com/show_bug.cgi?id=1642546
Diffstat (limited to 'library')
-rw-r--r--library/adenroll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/adenroll.c b/library/adenroll.c
index e02f403..58362c2 100644
--- a/library/adenroll.c
+++ b/library/adenroll.c
@@ -1057,6 +1057,10 @@ set_password_with_user_creds (adcli_enroll *enroll)
#endif
} else {
_adcli_info ("Set computer password");
+ if (enroll->kvno > 0) {
+ enroll->kvno++;
+ _adcli_info ("kvno incremented to %d", enroll->kvno);
+ }
res = ADCLI_SUCCESS;
}