[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: logging from PAM modules



Michael Tokarev wrote:
> 
[]
>   static int pam_default_log_callback(pamh, module, stack, pri, msg) {
>     openlog(module, LOG_AUTH|...);
>     syslog(pri, "%s: %s", stack, msg);
>     closelog();
>     return PAM_SUCCESS;
>   }

Oh, again forgot this.  locale() + LC_CTIME handling for syslog here,
example is in `Shadow Utilities'.  Ugly but necessary.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []