Received: from ilport.com.ua (167.imtp.Ilyichevsk.Odessa.UA [195.66.192.167] (may be forged)) by krbdev.mit.edu (8.9.3p2) with SMTP id JAA29507; Mon, 19 Dec 2005 09:57:21 -0500 (EST) Received: (qmail 26918 invoked by alias); 19 Dec 2005 14:57:07 -0000 Received: by simscan 1.1.0 ppid: 26875, pid: 26877, t: 11.2112s scanners:none Received: from unknown (172.17.2.38) by 0 (172.16.22.5) with ESMTP; 19 Dec 2005 14:56:56 -0000 From: Denis Vlasenko To: Ken Raeburn Subject: Re: [krbdev.mit.edu #3277] doubled kerberos logging to stderr Date: Mon, 19 Dec 2005 16:56:52 +0200 User-Agent: KMail/1.8.2 Cc: rt@krbdev.mit.edu References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512191656.52211.vda@ilport.com.ua> X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on logic X-Spam-Level: X-Spam-Status: No, score=-4.4 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.2 RT-Send-Cc: X-RT-Original-Encoding: iso-8859-1 Content-Length: 1846 On Monday 19 December 2005 01:24, Ken Raeburn wrote: > On Dec 18, 2005, at 07:35, Denis Vlasenko via RT wrote: > > 2005-12-18 14:26:49.560868500 conf_files > > 2005-12-18 14:26:49.561030500 conf_file:/etc/krb5.conf > > 2005-12-18 14:26:49.561846500 conf_file:/etc/krb5.conf > > 2005-12-18 14:26:49.562310500 kdc > > Okay, that looks like the default profile path has /etc/krb5.conf > listed twice. Could you check in the generated include/krb5/osconf.h > and see what DEFAULT_PROFILE_PATH (and DEFAULT_SECURE_PROFILE_PATH) > is defined as? Normally it should be /etc/krb5.conf and $sysconfdir/ > krb5.conf, where $sysconfdir is normally $prefix/etc, so unless > prefix is empty or you set sysconfdir, something funny is going on. Bingo. #define DEFAULT_SECURE_PROFILE_PATH "/etc/krb5.conf:/etc/krb5.conf" I did set configure --sysconfdir=/etc. > Perhaps the sed substitution done in include/krb5/Makefile didn't > work right, and generated a broken osconf.h? > > (It looks like we *will* do the wrong thing if --sysconfdir=/ is > given at configure time. We should perhaps have the profile code > check whether the same file is included twice even via different > paths, and not duplicate the data -- though having the hard-link > behavior be different from copy-of-file behavior would be a little > odd. And all of that aside, I think it would make sense for the > logging code to ignore duplicates, but since duplicates could > probably confuse other bits of our code too, that's not a complete fix.) > > > 2005-12-18 14:27:43.615334500 conf_file:/usr/app/krb5-1.4.3/var/ > > krb5kdc/kdc.conf - can't read it > > This uses DEFAULT_KDC_PROFILE, also defined in osconf.h, but that > uses $localstatedir, normally $prefix/var. So it looks like that > part of the sed substitution worked... -- vda