]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix SPNEGO one-hop interop against old IIS
authorGreg Hudson <ghudson@mit.edu>
Tue, 10 Dec 2013 17:04:18 +0000 (12:04 -0500)
committerTom Yu <tlyu@mit.edu>
Thu, 9 Jan 2014 02:46:14 +0000 (21:46 -0500)
commit9dedd1408cc26015a8becc6341a15225ebafe1e4
treef2d482b50f4a7c7ca3d2fa34c3bcf9eab829f1d1
parent091a9614049ace17fd89352c2d7e42ff210991ed
Fix SPNEGO one-hop interop against old IIS

IIS 6.0 and similar return a zero length reponse buffer in the last
SPNEGO packet when context initiation is performed without mutual
authentication.  In this case the underlying Kerberos mechanism has
already completed successfully on the first invocation, and SPNEGO
does not expect a mech response token in the answer.  If we get an
empty mech response token when the mech is complete during
negotiation, ignore it.

[ghudson@mit.edu: small code style and commit message changes]

(cherry picked from commit 37af638b742dbd642eb70092e4f7781c3f69d86d)

ticket: 7797
version_fixed: 1.12.1
status: resolved
src/lib/gssapi/spnego/spnego_mech.c