Index: helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc =================================================================== --- helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc.orig 2015-03-28 11:58:05.000000000 +0100 +++ helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc 2015-04-01 14:45:11.970927882 +0200 @@ -537,7 +537,11 @@ main(int argc, char *const argv[]) keytab_name_env = getenv("KRB5_KTNAME"); if (!keytab_name_env) { ret = krb5_init_context(&context); +#if HAVE_PAC_SUPPORT || HAVE_KRB5_MEMORY_KEYTAB if (!check_k5_err(context, "krb5_init_context", ret)) { +#else + if (0 == ret) { // no error continue... +#endif krb5_kt_default_name(context, default_keytab, MAXPATHLEN); } keytab_name = xstrdup(default_keytab);