s3-spnego: Fix Bug #6815. Windows 2008 R2 SPNEGO negTokenTarg parsing failure.
authorGünther Deschner <gd@samba.org>
Thu, 15 Oct 2009 12:13:26 +0000 (14:13 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 15 Oct 2009 13:05:00 +0000 (15:05 +0200)
commit7936874af1ab8b2449af41f38695b2946813adf7
tree7ca86defcf6bad23f38f48b42bad6986eec2340d
parentdfd22e3c5dd21b62b9509c1a9781aaa671b528b3
s3-spnego: Fix Bug #6815. Windows 2008 R2 SPNEGO negTokenTarg parsing failure.

When parsing a SPNEGO session setup retry (falling back from KRB5 to NTLMSSP),
we failed to parse the ASN1_ENUMERATED negResult in the negTokenTarg, thus
failing spnego_parse_auth() completely.

By just using the shared spnego/asn1 code, we get the parsing the correct way.

Guenther
(cherry picked from commit 449ab398f58c6e0041621752322ebe24e6d70225)
source3/Makefile.in
source3/libsmb/clispnego.c