[33440] in Kerberos

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

Re: unwanted KRB5_GET_INIT_CREDS_OPT_CANONICALIZE flags -> INVALID

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Jun 2 21:07:00 2011

From: Greg Hudson <ghudson@mit.edu>
To: "Marc W. Mengel" <mengel@fnal.gov>
In-Reply-To: <4DE800AE.1040408@fnal.gov>
Date: Thu, 02 Jun 2011 21:06:52 -0400
Message-ID: <1307063212.2281.14.camel@t410>
Mime-Version: 1.0
Cc: "kerberos@mit.edu" <kerberos@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

On Thu, 2011-06-02 at 17:29 -0400, Marc W. Mengel wrote:
> but when you go to request a ticket for a specific
> host, it looks like in s4u_identify_user()
> (http://src.mit.edu/krb5/xref/trunk/src/lib/krb5/krb/s4u_creds.c#102)
> the options are set to have canonicalize true, and then later in
> krb5_init_creds_init()
> (http://src.mit.edu/krb5/xref/trunk/src/lib/krb5/krb/get_in_tkt.c#868)
> if its already set to true, any options in the krb5.conf in the realm
> or what have you are ignored, because they are only checked if the 
> options word has the flag turned off.

Neither of these functions is used in the TGS request path.  What
actually happened was a change in the fallback behavior when get_creds.c
was rewritten for 1.9.  Previously, we would retry without the
canonicalize bit set any time we got an error from our first referral
request, but in 1.9 we only retry if we would be doing so in a different
realm.

The old fallback behavior will be restored in 1.9.2 (I just committed
the patch), but depending on your deployment scenario, it may be easier
to work around this problem by patching the KDC.  It would be a very
simple patch to validate_tgs_request() in kdc_util.c.


________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

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