From 8a69cd5988a0cf65b82942fa246492d9a602cb70 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Fri, 4 Dec 2015 12:10:28 +0100 Subject: [PATCH] Increment kvno after password change https://bugs.freedesktop.org/show_bug.cgi?id=91185 --- library/adenroll.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/adenroll.c b/library/adenroll.c index 1f58179..2253811 100644 --- a/library/adenroll.c +++ b/library/adenroll.c @@ -926,6 +926,10 @@ set_password_with_computer_creds (adcli_enroll *enroll) #endif } else { _adcli_info ("Changed computer password"); + if (enroll->kvno > 0) { + enroll->kvno++; + _adcli_info ("kvno incremented to %d", enroll->kvno); + } res = ADCLI_SUCCESS; } -- 2.5.0