From: Ezra Peisach Date: Tue, 10 Oct 1995 01:26:35 +0000 (+0000) Subject: If secure_profile is set in the context, do not allow the default X-Git-Tag: krb5-1.0-beta6~915 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=995ef6259b3f58d88dbec6487df3baef74d1da74;p=krb5.git If secure_profile is set in the context, do not allow the default keytab file to be overridden by an environment variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6953 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 7b3596ffa..7e253c863 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 9 19:05:24 1995 Ezra Peisach + + * ktdefname.c (krb5_kt_default_name): If profile_secure flag is + set in the context then do not allow changing the location + of the default keytab with an environment variable. + Fri Oct 6 22:04:57 1995 Theodore Y. Ts'o * Makefile.in: Remove ##DOS!include of config/windows.in. diff --git a/src/lib/krb5/os/ktdefname.c b/src/lib/krb5/os/ktdefname.c index d911b996d..5db076f5a 100644 --- a/src/lib/krb5/os/ktdefname.c +++ b/src/lib/krb5/os/ktdefname.c @@ -34,9 +34,9 @@ krb5_kt_default_name(context, name, namesize) char *name; int namesize; { - char *cp; + char *cp = 0; - cp = getenv("KRB5_KTNAME"); + if (context->profile_secure == FALSE) cp = getenv("KRB5_KTNAME"); if (cp) { strncpy(name, cp, namesize); if (strlen(cp) >= (size_t) namesize)