[19184] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Suppressing conf/integ flags in krb5 GSS tokens

daemon@ATHENA.MIT.EDU (Nico Williams)
Mon Jun 1 00:03:35 2015

Date: Sun, 31 May 2015 23:03:18 -0500
From: Nico Williams <nico@cryptonector.com>
To: heimdal-discuss@sics.se, Greg Hudson <ghudson@mit.edu>
Message-ID: <20150601040317.GA600@localhost>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <x7d382c632b.fsf@equal-rites.mit.edu>
Cc: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

On Sun, May 31, 2015 at 01:59:24PM -0400, Greg Hudson wrote:
> Comments?

Heimdal's SPNEGO implementation neither checks the the GSS_C_INTEG_FLAG
ret_flag, nor requests it as a req_flag.  Heimdal's SPNEGO discovers
integrity support by calling gss_get_mic(): if it returns GSS_S_UNAVAIL,
then integrity support is not provided, otherwise it is.  Heimdal also
assumes that if a MIC is received then integrity support must be
available.

I believe calling GSS_GetMIC() and GSS_VerifyMIC() even when
GSS_C_INTEG_FLAG is not set in ret_flags is perfectly permissible in
RFC2743.

Disabling the MIC in SPNEGO when GSS_C_INTEG_FLAG is not set in
ret_flags, combined with the new cred options, is likely (I think) to
fail to interop with Microsoft's SPNEGO when used in the application
protocol in question.  It ought to fail to interop, but who know,
perhaps MSFT's SPNEGO will not require the MIC in this protocol because
it's running over TLS, but I'd not bet on it.  The Heimdal approach
seems better.

Nico
-- 
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post