krb5 commit [krb5-1.11]: Allow multi-hop SAM-2 exchanges
Tom Yu
tlyu at MIT.EDU
Tue Feb 19 16:31:55 EST 2013
https://github.com/krb5/krb5/commit/370572d682c569c21a7d6a94080237e131b38664
commit 370572d682c569c21a7d6a94080237e131b38664
Author: Greg Hudson <ghudson at mit.edu>
Date: Sun Feb 17 12:23:30 2013 -0500
Allow multi-hop SAM-2 exchanges
Prior to 1.11, it was possible to do SAM-2 preauth exchanges with
multiple hops by sending repeated preauth-required errors with
different challenges (which is not the way multi-hop exchanges are
described in RFC 6113, but it can still work). This stopped working
when SAM-2 was converted to a built-in module because of the use_count
field. Disable the use count for SAM-2 specifically.
ticket: 7571
version_fixed: 1.11.1
status: resolved
src/lib/krb5/krb/preauth2.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c
index 23f00f3..4e235bd 100644
--- a/src/lib/krb5/krb/preauth2.c
+++ b/src/lib/krb5/krb/preauth2.c
@@ -590,7 +590,8 @@ run_preauth_plugins(krb5_context kcontext,
TRACE_PREAUTH_SKIP(kcontext, module->name, module->pa_type);
continue;
}
- module->use_count++;
+ if (module->pa_type != KRB5_PADATA_SAM_CHALLENGE_2)
+ module->use_count++;
}
/* run the module's callback function */
out_pa_data = NULL;
More information about the cvs-krb5
mailing list