Alexis is removing default_ccprincipal from the krb5_context.os_ctx. This is used to initialize the popup dialog from gssapi to the correct principal name. make sure that we try to load a principal name from the default ccache and use that instead since the parameter to Leash_Acquire... will be NULL.