heimdal/gssapi: Allow a NULL authenticator
authorAndrew Bartlett <abartlet@samba.org>
Fri, 26 Jun 2015 07:14:56 +0000 (19:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Aug 2015 04:39:19 +0000 (06:39 +0200)
commitddee603b5e5325129ffacbfb18a260a3d807a6e1
tree4b6bc87c8d87e7680edc62713669f4fd590f4d02
parent6224ac9cf4b04aa64fa2ee13267b76598319b042
heimdal/gssapi: Allow a NULL authenticator

Some non-GSSAPI implementations that instead try to create compatible packets by wrapping krb5_mk_req()
can trigger a NULL authenticator here.  Assume this to be equvilent to specifying an all-zero
channel bindings and some reasonable (fixed) flags.

This was seen in the wild, with a Huawei Unified Storage System S5500 V3 against the AD DC

Original patch by Andrew Bartlett, restructured by Douglas Bagnall

Cherry-picked from upstream GIT 0a5de96d72cdea9e465412d7dba1e5d13e53dc09
which is the merge of https://github.com/heimdal/heimdal/pull/134

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11425
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/heimdal/lib/gssapi/krb5/accept_sec_context.c