[krbdev.mit.edu #6936] multiple mechanisms and spnego_gss_init_sec_context

Arlene Berry via RT rt-comment at krbdev.mit.edu
Fri Jul 22 17:01:36 EDT 2011


You may have credentials for a mechanism but the initial gss_init_sec_context may not succeed.  One issue is that spnego_gss_init_sec_context chooses its preferred mechanism before it knows whether gss_init_sec_context will work and is not structured such that it can recover from a failure even though there might be another mechanism that would work.  The other issue is that for the best chance of success you really don't want to include any mechanism that will fail the initial gss_init_sec_context in the mechanism list that is sent to the acceptor.  This patch pre-screens the mechanism list for failures.  It's not the best solution because it throws away the initial context tokens and repeats the gss_init_sec_context call for the preferred mechanism.  




More information about the krb5-bugs mailing list