s3:ntlm_auth: support clients which offer a spnego mechs we don't support (bug #7855)
authorStefan Metzmacher <metze@samba.org>
Wed, 1 Dec 2010 23:39:23 +0000 (00:39 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 17 Dec 2010 19:45:21 +0000 (20:45 +0100)
commitab69b55011eea73d7c8827fc339feb905474f201
tree128ca1cad63c12106e863c4f801ab337609f114b
parente00cb883107753380272e128955ae5ad3057fd40
s3:ntlm_auth: support clients which offer a spnego mechs we don't support (bug #7855)

Before we rejected the authentication if we don't support the
first spnego mech the client offered.

We now negotiate the first mech we support.

This fix works arround problems, when a client
sends the NEGOEX (1.3.6.1.4.1.311.2.2.30) oid,
which we don't support.

metze
(cherry picked from commit f802075f08fe0d86f3d176f2302236aeb5834f3d)
Modified to work in the v3-5-test branch, e.g. use ntlmssp_end()

The last 9 patches address bug #7855 (ntlm_auth only handles the first spnego
mech).
source3/Makefile.in
source3/utils/ntlm_auth.c