зеркало из https://github.com/mozilla/pjs.git
Bug 240643 - Autthentication Failover not fully supported between connection based Authentication Types - patch by cneberg@sandia.gov r+sr=darin
This commit is contained in:
Родитель
3cd7f249a6
Коммит
e62e13781a
|
@ -51,6 +51,10 @@
|
|||
#include "nsNegotiateAuth.h"
|
||||
#include "nsNegotiateAuthGSSAPI.h"
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
#include <Kerberos/Kerberos.h>
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#if defined( PR_LOGGING )
|
||||
|
@ -219,6 +223,16 @@ nsNegotiateAuth::GetNextToken(const void *inToken,
|
|||
Reset();
|
||||
}
|
||||
|
||||
#if defined(XP_MACOSX)
|
||||
// Suppress Kerberos prompts to get credentials. See bug 240643.
|
||||
KLBoolean found;
|
||||
if (KLCacheHasValidTickets(NULL, kerberosVersion_V5, &found, NULL, NULL) != klNoErr || !found)
|
||||
{
|
||||
major_status = GSS_S_FAILURE;
|
||||
minor_status = 0;
|
||||
}
|
||||
else
|
||||
#endif /* XP_MACOSX */
|
||||
major_status = gss_init_sec_context(&minor_status,
|
||||
GSS_C_NO_CREDENTIAL,
|
||||
&mCtx,
|
||||
|
|
Загрузка…
Ссылка в новой задаче