Proper way to do logging (KDC) from preauth plugin?

Greg Hudson ghudson at MIT.EDU
Thu Apr 15 03:32:09 EDT 2010


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.)






More information about the krbdev mailing list