From 6e6468ab98f8bdcfd7be6f1490e9b205d1c4bd6a Mon Sep 17 00:00:00 2001 From: "Asanka C. Herath" Date: Wed, 27 Oct 2010 03:45:45 -0400 Subject: [PATCH] Windows: Search for config files in %{COMMON_APPDATA}/Kerberos In addition to the Heimdal directory, also search in the generic Kerberos configuration file directory. --- lib/krb5/constants.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/krb5/constants.c b/lib/krb5/constants.c index 6223fb5d6..3e9024ca5 100644 --- a/lib/krb5/constants.c +++ b/lib/krb5/constants.c @@ -44,7 +44,9 @@ KRB5_LIB_VARIABLE const char *krb5_config_file = #endif /* __APPLE__ */ "~/.krb5/config:" SYSCONFDIR "/krb5.conf" -#ifndef _WIN32 +#ifdef _WIN32 +":%{COMMON_APPDATA}/Kerberos/krb5.conf" +#else ":/etc/krb5.conf" #endif ;