summaryrefslogtreecommitdiffstats
path: root/src/tests/hist.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-10-08 17:07:34 -0400
committerGreg Hudson <ghudson@mit.edu>2013-10-14 23:52:52 -0400
commitc547bc16f2ab6ee66c076ef944c3fbac8a66f5d4 (patch)
treee63cdbda0e8e88563c923a0e67dbf41e79b34078 /src/tests/hist.c
parente547a515f837a7c59c0fe73d192a374593b70263 (diff)
downloadkrb5-c547bc16f2ab6ee66c076ef944c3fbac8a66f5d4.tar.gz
krb5-c547bc16f2ab6ee66c076ef944c3fbac8a66f5d4.tar.xz
krb5-c547bc16f2ab6ee66c076ef944c3fbac8a66f5d4.zip
Fix gss_accept_sec_context error tokens
A GSS krb5 error response contains a KRB-ERROR message, which is required to have a server principal name, although few recipients actually use it. Starting in 1.3, accept_sec_context would fail to encode the error in the GSS_C_NO_NAME/GSS_C_NO_CREDENTIAL case (introduced by #1370) because cred->princ (which became cred->name->princ in 1.8) is unset. This problem got worse in 1.10 because we stopped setting the server field in all cases due to the changes for #6855. In 1.11 the problem got worse again when a misguided change to the mechglue started discarding output tokens when the mechanism returns an error; the mechglue should only do so when it itself causes the error. Fix krb5 gss_accept_sec_context by unconditionally decoding the AP-REQ and using krb5_rd_req_decoded, and then using the requested ticket server in the KRB-ERROR message. Fix the mechglue gss_accept_sec_context by reverting that part of commit 56feee187579905c9101b0cdbdd8c6a850adcfc9. Add a test program which artificially induces a replay cache failure (the easiest failure we can produce which has an associated RFC 4120 error code) and checks that this can be communicated back to the initiator via an error token. ticket: 1445 target_version: 1.12 tags: pullup
Diffstat (limited to 'src/tests/hist.c')
0 files changed, 0 insertions, 0 deletions