Re: logging from PAM modules

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

 



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.





[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux