mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
mac-only, patch by dauterman@spamino.com, r=cneberg@gmail.com, sr=bienvenu, prompt for kerberos tickets if they don't exist
This commit is contained in:
parent
3b6ec26d79
commit
4e75a5df01
@ -397,12 +397,11 @@ nsAuthGSSAPI::GetNextToken(const void *inToken,
|
||||
// Suppress Kerberos prompts to get credentials. See bug 240643.
|
||||
// We can only use Mac OS X specific kerb functions if we are using
|
||||
// the native lib
|
||||
|
||||
KLBoolean found;
|
||||
if (gssNativeImp &&
|
||||
(KLCacheHasValidTickets_ptr(NULL, kerberosVersion_V5, &found, NULL,
|
||||
NULL)
|
||||
!= klNoErr || !found))
|
||||
KLBoolean found;
|
||||
PRBool doingMailTask = mServiceName.Find("imap@") || mServiceName.Find("pop@") || mServiceName.Find("smtp@");
|
||||
|
||||
if (!doingMailTask && (gssNativeImp &&
|
||||
(KLCacheHasValidTickets_ptr(NULL, kerberosVersion_V5, &found, NULL, NULL) != klNoErr || !found)))
|
||||
{
|
||||
major_status = GSS_S_FAILURE;
|
||||
minor_status = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user