diff options
author | Sumit Bose <sbose@redhat.com> | 2019-03-15 14:31:12 +0100 |
---|---|---|
committer | Sumit Bose <sbose@redhat.com> | 2019-03-15 14:31:12 +0100 |
commit | 5cf1723c308e21cdbe9b98ed2aaa42cb997456fb (patch) | |
tree | bd41a549662e39e078de070f79200e626d2c8466 /library | |
parent | 41fdcb1af885d99a91e27406e9343b322f67756a (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.c | 4 |
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; } |