Proper way to do logging (KDC) from preauth plugin?
Jeff Blaine
jblaine at kickflop.net
Wed Apr 21 17:59:12 EDT 2010
Even just using openlog() + syslog() doesn't work for me.
I don't get it.
> kdc_verify_preauth(...) {
> /* vars here, then the 1st 3 calls are: */
>
> /* *.debug /var/log/messages */
> openlog("myplugin", LOG_NOWAIT, LOG_DAEMON);
> syslog(LOG_INFO, "in my plugin");
> closelog();
>
> /* ...rest of func... */
> }
kinit works fine, but no syslog message.
This shows nothing useful either (I'm trying!):
# gdb /usr/mykrb/sbin/krb5kdc
...
(gdb) break openlog
Function "openlog" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (openlog) pending.
(gdb) set follow-fork-mode child
(gdb) run
Starting program: /usr/krbattest/sbin/krb5kdc
[Thread debugging using libthread_db enabled]
[Thread debugging using libthread_db enabled]
[New Thread 0xb7fdf8d0 (LWP 18329)]
kinit on client here ...
... nothing, in fact I can't even Ctrl-C, Ctrl-Z, etc.
On 4/19/2010 5:45 PM, Jeff Blaine wrote:
> No love. kadm5srv_mit shows up once.
>
> Reading symbols from /usr/mykrb/lib/libkadm5srv_mit.so.7...done.
> Loaded symbols for /usr/mykrb/lib/libkadm5srv_mit.so.7
> ...
> Reading symbols from
> /usr/mykrb/lib/krb5/plugins/preauth/myplugin.so...done.
> Loaded symbols for /usr/mykrb/lib/krb5/plugins/preauth/myplugin.so
> Reading symbols from /lib/libpthread.so.0...done.
More information about the krbdev
mailing list