kinit with expired password fails, patch
Greg Hudson
ghudson at MIT.EDU
Wed Apr 25 13:03:55 EDT 2012
Here's the fix I plan to use. Can you let me know if it works in your
test scenario?
-------------- next part --------------
diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c
index 06a135a..5bc8308 100644
--- a/src/lib/krb5/krb/preauth2.c
+++ b/src/lib/krb5/krb/preauth2.c
@@ -281,6 +281,7 @@ krb5_preauth_request_context_init(krb5_context context)
if (context->preauth_context == NULL)
return;
for (i = 0; i < context->preauth_context->n_modules; i++) {
+ context->preauth_context->modules[i].use_count = 0;
mod = &context->preauth_context->modules[i];
if (mod->client_req_init != NULL)
mod->client_req_init(context, mod->moddata, mod->modreq_p);
More information about the krbdev
mailing list