[14463] in Kerberos
Re: On ./configure --sysconfdir=... and the meaning of multiple config files
daemon@ATHENA.MIT.EDU (Nicolas Williams)
Fri May 18 11:23:00 2001
Date: Fri, 18 May 2001 11:15:05 -0400
From: Nicolas Williams <Nicolas.Williams@ubsw.com>
To: Sam Hartman <hartmans@MIT.EDU>
Cc: kerberos@MIT.EDU
Message-ID: <20010518111503.O26763@sm2p1386swk.wdr.com>
Mail-Followup-To: Sam Hartman <hartmans@MIT.EDU>, kerberos@MIT.EDU
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
In-Reply-To: <tslae4b32zj.fsf@sweet-transvestite.mit.edu>; from hartmans@MIT.EDU on Thu, May 17, 2001 at 08:38:56PM -0400
Thank you, this clarifies it for me.
However, isn't this a confusing use of a standard autoconf feature?
Running ./configure --help says the following about sysconfdir:
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
That is a bit confusing and led me to believe that --sysconfdir could be
used to change MIT krb5's expected located of the system krb5.conf file.
But now I know (and maybe it should be documented) that MIT krb5 will
read both, /etc/krb5.conf, and @SYSCONFDIR@/krb5.conf; not only does it
read both, it merges them, and duplicated entries are treated as if they
appear twice too, and that makes a difference with profile_get_values()
and multi-value parameters.
Cheers,
Nico
On Thu, May 17, 2001 at 08:38:56PM -0400, Sam Hartman wrote:
> At the time I added sysconfdir support it's not clear that it read
> both config files. Either I misread the code, or a bug was fixed
> later. I know the profile library was intended to read both
> configuration files, but I thought it did not do so when I wrote the
> original sysconfdir patch.
>
> That said, I have found the sysconfdir patch very useful and think it is a good idea to try and read sysconfdir/krb5.conf.
>
> It might be reasonable to look for krb5.keytab in sysconfdir as well.
--