xref: /freebsd/contrib/openpam/doc/man/openpam_log.3 (revision 3ba4c8c81a28de3e00ccf6d7f92c6f8e58bef456)
1ce77a8d6SDag-Erling Smørgrav.\" Generated from openpam_log.c by gendoc.pl
2*3ba4c8c8SDag-Erling Smørgrav.Dd June 27, 2023
346acc370SDag-Erling Smørgrav.Dt OPENPAM_LOG 3
446acc370SDag-Erling Smørgrav.Os
546acc370SDag-Erling Smørgrav.Sh NAME
646acc370SDag-Erling Smørgrav.Nm openpam_log
731c521e9SDag-Erling Smørgrav.Nd log a message through syslog
846acc370SDag-Erling Smørgrav.Sh SYNOPSIS
9644f2b7cSDag-Erling Smørgrav.In sys/types.h
1046acc370SDag-Erling Smørgrav.In security/pam_appl.h
11ac7e3b9dSDag-Erling Smørgrav.In security/openpam.h
12ca236e63SDag-Erling Smørgrav.Ft "void"
1346acc370SDag-Erling Smørgrav.Fn openpam_log "int level" "const char *fmt" "..."
1446acc370SDag-Erling Smørgrav.Sh DESCRIPTION
1531c521e9SDag-Erling SmørgravThe
162f3ed619SDag-Erling Smørgrav.Fn openpam_log
1731c521e9SDag-Erling Smørgravfunction logs messages using
1831c521e9SDag-Erling Smørgrav.Xr syslog 3 .
19b33ab329SDag-Erling SmørgravIt is primarily intended for internal use by the library and modules.
2031c521e9SDag-Erling Smørgrav.Pp
2131c521e9SDag-Erling SmørgravThe
22b33ab329SDag-Erling Smørgrav.Fa level
23b33ab329SDag-Erling Smørgravargument indicates the importance of the message.
24b33ab329SDag-Erling SmørgravThe following levels are defined:
2531c521e9SDag-Erling Smørgrav.Bl -tag -width 18n
262f3ed619SDag-Erling Smørgrav.It Dv PAM_LOG_LIBDEBUG
272f3ed619SDag-Erling SmørgravDebugging messages.
282f3ed619SDag-Erling SmørgravFor internal use only.
2931c521e9SDag-Erling Smørgrav.It Dv PAM_LOG_DEBUG
30b33ab329SDag-Erling SmørgravDebugging messages.
31b33ab329SDag-Erling SmørgravThese messages are normally not logged unless the global
32b33ab329SDag-Erling Smørgravinteger variable
337f106882SDag-Erling Smørgrav.Va openpam_debug
34b33ab329SDag-Erling Smørgravis set to a non-zero
35b33ab329SDag-Erling Smørgravvalue, in which case they are logged with a
3631c521e9SDag-Erling Smørgrav.Xr syslog 3
3731c521e9SDag-Erling Smørgravpriority of
3831c521e9SDag-Erling Smørgrav.Dv LOG_DEBUG .
3931c521e9SDag-Erling Smørgrav.It Dv PAM_LOG_VERBOSE
4031c521e9SDag-Erling SmørgravInformation about the progress of the authentication
41b33ab329SDag-Erling Smørgravprocess, or other non-essential messages.
42b33ab329SDag-Erling SmørgravThese messages are logged with a
4331c521e9SDag-Erling Smørgrav.Xr syslog 3
4431c521e9SDag-Erling Smørgravpriority of
4531c521e9SDag-Erling Smørgrav.Dv LOG_INFO .
4631c521e9SDag-Erling Smørgrav.It Dv PAM_LOG_NOTICE
47b33ab329SDag-Erling SmørgravMessages relating to non-fatal errors.
48b33ab329SDag-Erling SmørgravThese messages are logged with a
4931c521e9SDag-Erling Smørgrav.Xr syslog 3
5031c521e9SDag-Erling Smørgravpriority of
5131c521e9SDag-Erling Smørgrav.Dv LOG_NOTICE .
5231c521e9SDag-Erling Smørgrav.It Dv PAM_LOG_ERROR
53b33ab329SDag-Erling SmørgravMessages relating to serious errors.
54b33ab329SDag-Erling SmørgravThese messages are logged with a
5531c521e9SDag-Erling Smørgrav.Xr syslog 3
5631c521e9SDag-Erling Smørgravpriority of
5731c521e9SDag-Erling Smørgrav.Dv LOG_ERR .
5831c521e9SDag-Erling Smørgrav.El
5931c521e9SDag-Erling Smørgrav.Pp
6031c521e9SDag-Erling SmørgravThe remaining arguments are a
6131c521e9SDag-Erling Smørgrav.Xr printf 3
6231c521e9SDag-Erling Smørgravformat string and the
6331c521e9SDag-Erling Smørgravcorresponding arguments.
64ce77a8d6SDag-Erling Smørgrav.Pp
65ce77a8d6SDag-Erling SmørgravThe
66ce77a8d6SDag-Erling Smørgrav.Fn openpam_log
67ce77a8d6SDag-Erling Smørgravfunction does not modify the value of
68ce77a8d6SDag-Erling Smørgrav.Va errno .
6946acc370SDag-Erling Smørgrav.Sh SEE ALSO
7031c521e9SDag-Erling Smørgrav.Xr pam 3 ,
7131c521e9SDag-Erling Smørgrav.Xr printf 3 ,
7231c521e9SDag-Erling Smørgrav.Xr syslog 3
7346acc370SDag-Erling Smørgrav.Sh STANDARDS
7446acc370SDag-Erling SmørgravThe
752f3ed619SDag-Erling Smørgrav.Fn openpam_log
7646acc370SDag-Erling Smørgravfunction is an OpenPAM extension.
7746acc370SDag-Erling Smørgrav.Sh AUTHORS
7846acc370SDag-Erling SmørgravThe
792f3ed619SDag-Erling Smørgrav.Fn openpam_log
802f3ed619SDag-Erling Smørgravfunction and this manual page were
812f3ed619SDag-Erling Smørgravdeveloped for the
82ca236e63SDag-Erling Smørgrav.Fx
832f3ed619SDag-Erling SmørgravProject by ThinkSec AS and Network Associates Laboratories, the
849bc006deSDag-Erling SmørgravSecurity Research Division of Network Associates, Inc.\& under
85ca236e63SDag-Erling SmørgravDARPA/SPAWAR contract N66001-01-C-8035
8646acc370SDag-Erling Smørgrav.Pq Dq CBOSS ,
8746acc370SDag-Erling Smørgravas part of the DARPA CHATS research program.
88ce77a8d6SDag-Erling Smørgrav.Pp
89ce77a8d6SDag-Erling SmørgravThe OpenPAM library is maintained by
90f3b0ac34SDag-Erling Smørgrav.An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .
91