s4:gensec/spnego: only look at the optimistic token if we support the first mech
authorStefan Metzmacher <metze@samba.org>
Wed, 1 Dec 2010 06:02:15 +0000 (07:02 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 Dec 2010 14:51:38 +0000 (15:51 +0100)
commit7e1759900a1f0efa6e20283eb287c7e57098b532
tree931b859579bf36627c4508559345bb3d26019d29
parent4fd57cbe1ba35d3b3deb01b2eb6aba1d0aa4ddfd
s4:gensec/spnego: only look at the optimistic token if we support the first mech

As a server only try the mechs the client proposed
and only call gensec_update() with the optimistic token
for the first mech in the list.

If the server doesn't support the first mech we pick the
first one in the clients list we also support.
That's how w2k8r2 works.

metze
source4/auth/gensec/spnego.c