Index: src/options.c =================================================================== --- src/options.c.orig +++ src/options.c @@ -40,6 +40,7 @@ #include #include #include +#include #ifdef HAVE_SECURITY_PAM_APPL_H #include @@ -354,7 +355,7 @@ _pam_krb5_options_init(pam_handle_t *pam if (strlen(options->realm) > 0) { krb5_set_default_realm(ctx, options->realm); if (options->debug) { - debug("configured realm '%s'", options->realm); + pam_syslog(pamh, LOG_DEBUG, "configured realm '%s'", options->realm); } }