[15664] in Kerberos_V5_Development
Re: Proper way to do logging (KDC) from preauth plugin?
daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Apr 15 03:32:14 2010
From: Greg Hudson <ghudson@mit.edu>
To: Jeff Blaine <jblaine@kickflop.net>
In-Reply-To: <4BC60B9F.5070506@kickflop.net>
Date: Thu, 15 Apr 2010 03:32:09 -0400
Message-ID: <1271316729.23242.509.camel@ray>
Mime-Version: 1.0
Cc: "krbdev@mit.edu" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
On Wed, 2010-04-14 at 14:38 -0400, Jeff Blaine wrote:
> What's the proper way to do logging from within a
> preauth plugin (the KDC side) ?
I don't see any logging calls in our current plugins (probably a bad
thing), but I believe the right answer is to link against -lkadm5 and
call krb5_klog_syslog().
It's also possible to use com_err(), but that doesn't let you set the
priority. (Well, it does, but only through a really bad hack.)
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev