Index: scheduler/auth.c =================================================================== --- scheduler/auth.c (revision 9294) +++ scheduler/auth.c (working copy) @@ -993,6 +993,24 @@ "cupsdAuthorize: Copying credentials for UID %d...", CUPSD_UCRED_UID(peercred)); + if (!KerberosInitialized) + { + /* + * Setup a Kerberos context for the scheduler to use... + */ + + KerberosInitialized = 1; + + if (krb5_init_context(&KerberosContext)) + { + KerberosContext = NULL; + + cupsdLogMessage(CUPSD_LOG_ERROR, + "Unable to initialize Kerberos context"); + return; + } + } + krb5_ipc_client_set_target_uid(CUPSD_UCRED_UID(peercred)); if ((error = krb5_cc_default(KerberosContext, &peerccache)) != 0)