2015-04-26 13:20:33 +02:00
|
|
|
Index: helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc
|
|
|
|
===================================================================
|
2015-05-22 20:22:37 +02:00
|
|
|
--- helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc.orig
|
|
|
|
+++ helpers/negotiate_auth/kerberos/negotiate_kerberos_auth.cc
|
|
|
|
@@ -535,7 +535,11 @@ main(int argc, char *const argv[])
|
2015-04-26 13:20:33 +02:00
|
|
|
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);
|