xref: /freebsd/contrib/openpam/doc/man/openpam_log.3 (revision 2f3ed61901142025bf8b99c3bda7b38dd74b09a8)
146acc370SDag-Erling Smørgrav.\"-
231c521e9SDag-Erling Smørgrav.\" Copyright (c) 2001-2003 Networks Associates Technology, Inc.
37f106882SDag-Erling Smørgrav.\" Copyright (c) 2004-2011 Dag-Erling Smørgrav
446acc370SDag-Erling Smørgrav.\" All rights reserved.
546acc370SDag-Erling Smørgrav.\"
646acc370SDag-Erling Smørgrav.\" This software was developed for the FreeBSD Project by ThinkSec AS and
7ee02aaa9SDag-Erling Smørgrav.\" Network Associates Laboratories, the Security Research Division of
8ee02aaa9SDag-Erling Smørgrav.\" Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
9ee02aaa9SDag-Erling Smørgrav.\" ("CBOSS"), as part of the DARPA CHATS research program.
1046acc370SDag-Erling Smørgrav.\"
1146acc370SDag-Erling Smørgrav.\" Redistribution and use in source and binary forms, with or without
1246acc370SDag-Erling Smørgrav.\" modification, are permitted provided that the following conditions
1346acc370SDag-Erling Smørgrav.\" are met:
1446acc370SDag-Erling Smørgrav.\" 1. Redistributions of source code must retain the above copyright
1546acc370SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer.
1646acc370SDag-Erling Smørgrav.\" 2. Redistributions in binary form must reproduce the above copyright
1746acc370SDag-Erling Smørgrav.\"    notice, this list of conditions and the following disclaimer in the
1846acc370SDag-Erling Smørgrav.\"    documentation and/or other materials provided with the distribution.
1946acc370SDag-Erling Smørgrav.\" 3. The name of the author may not be used to endorse or promote
2046acc370SDag-Erling Smørgrav.\"    products derived from this software without specific prior written
2146acc370SDag-Erling Smørgrav.\"    permission.
2246acc370SDag-Erling Smørgrav.\"
2346acc370SDag-Erling Smørgrav.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
2446acc370SDag-Erling Smørgrav.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2546acc370SDag-Erling Smørgrav.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2646acc370SDag-Erling Smørgrav.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2746acc370SDag-Erling Smørgrav.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2846acc370SDag-Erling Smørgrav.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2946acc370SDag-Erling Smørgrav.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3046acc370SDag-Erling Smørgrav.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3146acc370SDag-Erling Smørgrav.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3246acc370SDag-Erling Smørgrav.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3346acc370SDag-Erling Smørgrav.\" SUCH DAMAGE.
3446acc370SDag-Erling Smørgrav.\"
357f106882SDag-Erling Smørgrav.\" $Id$
3646acc370SDag-Erling Smørgrav.\"
37*2f3ed619SDag-Erling Smørgrav.Dd May 26, 2012
3846acc370SDag-Erling Smørgrav.Dt OPENPAM_LOG 3
3946acc370SDag-Erling Smørgrav.Os
4046acc370SDag-Erling Smørgrav.Sh NAME
4146acc370SDag-Erling Smørgrav.Nm openpam_log
4231c521e9SDag-Erling Smørgrav.Nd log a message through syslog
4346acc370SDag-Erling Smørgrav.Sh LIBRARY
4446acc370SDag-Erling Smørgrav.Lb libpam
4546acc370SDag-Erling Smørgrav.Sh SYNOPSIS
46644f2b7cSDag-Erling Smørgrav.In sys/types.h
4746acc370SDag-Erling Smørgrav.In security/pam_appl.h
48ac7e3b9dSDag-Erling Smørgrav.In security/openpam.h
49ca236e63SDag-Erling Smørgrav.Ft "void"
5046acc370SDag-Erling Smørgrav.Fn openpam_log "int level" "const char *fmt" "..."
5146acc370SDag-Erling Smørgrav.Sh DESCRIPTION
5231c521e9SDag-Erling SmørgravThe
53*2f3ed619SDag-Erling Smørgrav.Fn openpam_log
5431c521e9SDag-Erling Smørgravfunction logs messages using
5531c521e9SDag-Erling Smørgrav.Xr syslog 3 .
56b33ab329SDag-Erling SmørgravIt is primarily intended for internal use by the library and modules.
5731c521e9SDag-Erling Smørgrav.Pp
5831c521e9SDag-Erling SmørgravThe
59b33ab329SDag-Erling Smørgrav.Fa level
60b33ab329SDag-Erling Smørgravargument indicates the importance of the message.
61b33ab329SDag-Erling SmørgravThe following levels are defined:
6231c521e9SDag-Erling Smørgrav.Bl -tag -width 18n
63*2f3ed619SDag-Erling Smørgrav.It Dv PAM_LOG_LIBDEBUG
64*2f3ed619SDag-Erling SmørgravDebugging messages.
65*2f3ed619SDag-Erling SmørgravFor internal use only.
6631c521e9SDag-Erling Smørgrav.It Dv PAM_LOG_DEBUG
67b33ab329SDag-Erling SmørgravDebugging messages.
68b33ab329SDag-Erling SmørgravThese messages are normally not logged unless the global
69b33ab329SDag-Erling Smørgravinteger variable
707f106882SDag-Erling Smørgrav.Va openpam_debug
71b33ab329SDag-Erling Smørgravis set to a non-zero
72b33ab329SDag-Erling Smørgravvalue, in which case they are logged with a
7331c521e9SDag-Erling Smørgrav.Xr syslog 3
7431c521e9SDag-Erling Smørgravpriority of
7531c521e9SDag-Erling Smørgrav.Dv LOG_DEBUG .
7631c521e9SDag-Erling Smørgrav.It Dv PAM_LOG_VERBOSE
7731c521e9SDag-Erling SmørgravInformation about the progress of the authentication
78b33ab329SDag-Erling Smørgravprocess, or other non-essential messages.
79b33ab329SDag-Erling SmørgravThese messages are logged with a
8031c521e9SDag-Erling Smørgrav.Xr syslog 3
8131c521e9SDag-Erling Smørgravpriority of
8231c521e9SDag-Erling Smørgrav.Dv LOG_INFO .
8331c521e9SDag-Erling Smørgrav.It Dv PAM_LOG_NOTICE
84b33ab329SDag-Erling SmørgravMessages relating to non-fatal errors.
85b33ab329SDag-Erling SmørgravThese messages are logged with a
8631c521e9SDag-Erling Smørgrav.Xr syslog 3
8731c521e9SDag-Erling Smørgravpriority of
8831c521e9SDag-Erling Smørgrav.Dv LOG_NOTICE .
8931c521e9SDag-Erling Smørgrav.It Dv PAM_LOG_ERROR
90b33ab329SDag-Erling SmørgravMessages relating to serious errors.
91b33ab329SDag-Erling SmørgravThese messages are logged with a
9231c521e9SDag-Erling Smørgrav.Xr syslog 3
9331c521e9SDag-Erling Smørgravpriority of
9431c521e9SDag-Erling Smørgrav.Dv LOG_ERR .
9531c521e9SDag-Erling Smørgrav.El
9631c521e9SDag-Erling Smørgrav.Pp
9731c521e9SDag-Erling SmørgravThe remaining arguments are a
9831c521e9SDag-Erling Smørgrav.Xr printf 3
9931c521e9SDag-Erling Smørgravformat string and the
10031c521e9SDag-Erling Smørgravcorresponding arguments.
10146acc370SDag-Erling Smørgrav.Sh SEE ALSO
10231c521e9SDag-Erling Smørgrav.Xr pam 3 ,
10331c521e9SDag-Erling Smørgrav.Xr printf 3 ,
10431c521e9SDag-Erling Smørgrav.Xr syslog 3
10546acc370SDag-Erling Smørgrav.Sh STANDARDS
10646acc370SDag-Erling SmørgravThe
107*2f3ed619SDag-Erling Smørgrav.Fn openpam_log
10846acc370SDag-Erling Smørgravfunction is an OpenPAM extension.
10946acc370SDag-Erling Smørgrav.Sh AUTHORS
11046acc370SDag-Erling SmørgravThe
111*2f3ed619SDag-Erling Smørgrav.Fn openpam_log
112*2f3ed619SDag-Erling Smørgravfunction and this manual page were
113*2f3ed619SDag-Erling Smørgravdeveloped for the
114ca236e63SDag-Erling Smørgrav.Fx
115*2f3ed619SDag-Erling SmørgravProject by ThinkSec AS and Network Associates Laboratories, the
1169bc006deSDag-Erling SmørgravSecurity Research Division of Network Associates, Inc.\& under
117ca236e63SDag-Erling SmørgravDARPA/SPAWAR contract N66001-01-C-8035
11846acc370SDag-Erling Smørgrav.Pq Dq CBOSS ,
11946acc370SDag-Erling Smørgravas part of the DARPA CHATS research program.
120