[1529] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5.b5 buglet: krb5.conf not affected by --with-krb5-root ?

daemon@ATHENA.MIT.EDU (Jonathan Stone)
Thu Jul 6 09:26:55 1995

Date: Thu, 6 Jul 1995 06:26:10 -0700
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
To: krb5-bugs@MIT.EDU


From src/include/krb5/stock/osconf.h:

    #ifdef KRB5_ATHENA_COMPAT
    /*
     * Let's store krb5.conf is the same place whether or not we're
     * compiling under with Project Athena options turned on.  Things are
     * much more sane that way!!!!  --- Ted
     */
    #define DEFAULT_PROFILE_FILENAME "/etc/krb5.conf"
    #define	DEFAULT_CONFIG_FILENAME	"/etc/athena/krb.conf.v5"

    [...]

    #else

    #define DEFAULT_PROFILE_FILENAME "/etc/krb5.conf"
    #define	DEFAULT_CONFIG_FILENAME	"@KRB5ROOT/krb.conf"
    #define	DEFAULT_CONFIG_FILENAME	"@KRB5ROOT/krb.conf"
    #define	DEFAULT_TRANS_FILENAME	"@KRB5ROOT/krb.realms"
    #define	DEFAULT_LNAME_FILENAME	"@KRB5ROOT/aname"
    #define	DEFAULT_KEYTAB_NAME	"FILE:@KRB5SRVTABDIR/v5srvtab"
    #endif

[someone can't make up their minds whether to use tabs or whitespace;
  that's in the krb5.b5 source, not me.]

It may be a deliberate `feature' that @KRB5ROOT (set from --with-krb5-root)
doesn't affect krb5.conf, but I find it  confusing and easy to forget;
so I'd tend to call it a bug.

Is this deliberate behaviour (perhaps even with a  well-thought-out
rationale) or  just an accident?

home help back first fref pref prev next nref lref last post