[25026] in Kerberos

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

Re: Double logs from the KDC

daemon@ATHENA.MIT.EDU (Fredrik Tolf)
Tue Nov 29 16:51:43 2005

From: Fredrik Tolf <fredrik@dolda2000.com>
To: Kevin Coffman <kwc@citi.umich.edu>
In-Reply-To: <4d569c330511281559r623e33d8y9acffaa4a3077101@mail.gmail.com>
Content-Type: text/plain
Date: Tue, 29 Nov 2005 05:30:53 +0100
Message-Id: <1133238653.28572.38.camel@pc7.dolda2000.com>
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
cc: kerberos@mit.edu
Errors-To: kerberos-bounces@mit.edu

On Mon, 2005-11-28 at 18:59 -0500, Kevin Coffman wrote:
> my guess would be that you have another krb5.conf file which is being
> read and has the same logging directives.  (or you have them specified
> in kdc.conf as well?)

Is it possible to have the KDC load multiple Kerberos config files? How
is that set up? I thought /etc/krb5.conf was hardwired.

> If possible, you might run under strace to see which krb5.conf file(s)
> are being used.

I straced it, but I couldn't find any hint of it reading any other
config file than krb5.conf and kdc.conf. krb5.conf is only read once,
and it contains only one logging directive. kdc.conf is read twice for
some reason, but it doesn't contain any logging directives.

Thanks for the ideas, but I can't seem to get any further on that. Do
you have any more ideas?

Fredrik Tolf

> On 11/27/05, Fredrik Tolf <fredrik@dolda2000.com> wrote:
> > Hi List!
> >
> > I have a small problem with my MIT KDC: All log messages are logged
> > twice. It's not exactly a life threatening problem, but quite annoying.
> >
> > I have configured logging to log both to a file and to syslog, and the
> > log messages appear twice in both the file and in syslog. When looking
> > in /proc/`pidof krb5kdc`/fd (it's running on Linux), I can also see that
> > it has opened the logfile on two file descriptors.
> >
> > My log configuration from /etc/krb5.conf looks like this:
> > [logging]
> >         kdc = FILE:/var/log/krb5kdc.log
> >         kdc = SYSLOG:INFO:DAEMON
> >         admin_server = FILE:/var/log/kadmin.log
> >         admin_server = SYSLOG:INFO:DAEMON
> >         default = FILE:/var/log/krb5lib.log
> >
> > The logs from the kadmin daemon appear twice, as well. Does someone know
> > why this happens?
> >
> > Fredrik Tolf
> >
> >
> > ________________________________________________
> > Kerberos mailing list           Kerberos@mit.edu
> > https://mailman.mit.edu/mailman/listinfo/kerberos
> >
> >

________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

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