+Sun Nov 12 05:31:21 1995 Mark W. Eichin <eichin@cygnus.com>
+
+ * def_realm.c (krb5_get_default_realm): check for PROF_NO_PROFILE
+ and return KRB5_CONFIG_CANTOPEN instead of BADFORMAT so that the
+ user in the end knows what is going on.
+
Mon Oct 9 19:05:24 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* ktdefname.c (krb5_kt_default_name): If profile_secure flag is
{
char *realm;
char *cp;
+ krb5_error_code retval;
if (!context || (context->magic != KV5M_CONTEXT))
return KV5M_CONTEXT;
* on the host's DNS domain.
*/
context->default_realm = 0;
- profile_get_string(context->profile, "libdefaults",
+ retval = profile_get_string(context->profile, "libdefaults",
"default_realm", 0, 0,
&context->default_realm);
+ if (retval == PROF_NO_PROFILE)
+ return KRB5_CONFIG_CANTOPEN;
if (context->default_realm == 0)
return(KRB5_CONFIG_BADFORMAT);
}