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 DAA23645; Fri, 9 Dec 2005 03:08:57 -0500 (EST) Received: (qmail 6091 invoked by alias); 9 Dec 2005 08:08:41 -0000 Received: by simscan 1.1.0 ppid: 6080, pid: 6082, t: 6.8988s scanners:none Received: from unknown (172.17.2.38) by 0 (172.16.22.5) with ESMTP; 09 Dec 2005 08:08:35 -0000 From: Denis Vlasenko To: rt-comment@krbdev.mit.edu Subject: Re: [krbdev.mit.edu #3277] doubled kerberos logging to stderr Date: Fri, 9 Dec 2005 10:08:29 +0200 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512091008.29930.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.5 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.2 RT-Send-Cc: X-RT-Original-Encoding: koi8-r Content-Length: 1889 On Thursday 08 December 2005 19:39, Tom Yu via RT wrote: > >>>>> "Denis" == Denis Vlasenko via RT writes: > > Denis> IOW, /etc/krb5.conf is read once, yet "default = FILE:/proc/self/fd/2" > Denis> directive seems to be processed twice. > > If you set the KRB5_CONFIG environment variable to "/etc/krb5.conf", > do you still get the duplicates? No, I do not. This is instrumented version of kdc running: 2005-12-09 10:02:54.655785500 kdc 2005-12-09 10:02:54.656054500 krb5kdc 2005-12-09 10:02:54.656147500 FILE:/proc/self/fd/2 <=== parses config 2005-12-09 10:02:54.656335500 FILE 2005-12-09 10:02:55.046682500 ! <=== about to emit message 2005-12-09 10:02:55.046787500 * <=== one and only log destination 2005-12-09 10:02:55.046991500 Dec 09 10:02:55 logic krb5kdc[4905](info): setting up network... 2005-12-09 10:02:55.047331500 ! 2005-12-09 10:02:55.047390500 * 2005-12-09 10:02:55.047447500 Dec 09 10:02:55 logic krb5kdc[4905](info): listening on fd 6: udp 172.16.22.2.750 2005-12-09 10:02:55.047551500 ! 2005-12-09 10:02:55.047632500 * 2005-12-09 10:02:55.047688500 Dec 09 10:02:55 logic krb5kdc[4905](info): listening on fd 7: udp 172.16.22.2.88 ... Without KRB5_CONFIG: 2005-12-08 14:46:04.467856500 kdc 2005-12-08 14:46:04.468130500 krb5kdc 2005-12-08 14:46:04.468231500 FILE:/proc/self/fd/2 <=== parses config, gets FILE:... twice 2005-12-08 14:46:04.468306500 FILE:/proc/self/fd/2 2005-12-08 14:46:04.468521500 FILE 2005-12-08 14:46:04.468613500 FILE 2005-12-08 14:46:04.814418500 ! <=== about to emit message 2005-12-08 14:46:04.814508500 * <=== log to first FILE: 2005-12-08 14:46:04.814616500 Dec 08 14:46:04 logic krb5kdc[31794](info): setting up network... 2005-12-08 14:46:04.814678500 * <=== log to second FILE: 2005-12-08 14:46:04.814758500 Dec 08 14:46:04 logic krb5kdc[31794](info): setting up network... ... -- vda