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 12:22:37 +0000 (13:22 +0100)
commit5e9dfdc1a68deec917b2bd654f365b7eb7a608ef
treedf7f67e919837c8fcac27ce51f6995dfbeac37a2
parent0fe744078d1ce9c93759ffed3f27db82ec8922ff
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