xref: /freebsd/contrib/openpam/doc/man/openpam_set_option.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_SET_OPTION 3
3946acc370SDag-Erling Smørgrav.Os
4046acc370SDag-Erling Smørgrav.Sh NAME
4146acc370SDag-Erling Smørgrav.Nm openpam_set_option
4246acc370SDag-Erling Smørgrav.Nd sets the value of a module option
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 "int"
5046acc370SDag-Erling Smørgrav.Fn openpam_set_option "pam_handle_t *pamh" "const char *option" "const char *value"
5146acc370SDag-Erling Smørgrav.Sh DESCRIPTION
5246acc370SDag-Erling SmørgravThe
53*2f3ed619SDag-Erling Smørgrav.Fn openpam_set_option
5446acc370SDag-Erling Smørgravfunction sets the specified option in the
5546acc370SDag-Erling Smørgravcontext of the currently executing service module.
5631c521e9SDag-Erling Smørgrav.Pp
5746acc370SDag-Erling Smørgrav.Sh RETURN VALUES
5846acc370SDag-Erling SmørgravThe
59*2f3ed619SDag-Erling Smørgrav.Fn openpam_set_option
6046acc370SDag-Erling Smørgravfunction returns one of the following values:
6146acc370SDag-Erling Smørgrav.Bl -tag -width 18n
6246acc370SDag-Erling Smørgrav.It Bq Er PAM_BUF_ERR
6346acc370SDag-Erling SmørgravMemory buffer error.
6446acc370SDag-Erling Smørgrav.It Bq Er PAM_SYSTEM_ERR
6546acc370SDag-Erling SmørgravSystem error.
6646acc370SDag-Erling Smørgrav.El
6746acc370SDag-Erling Smørgrav.Sh SEE ALSO
6831c521e9SDag-Erling Smørgrav.Xr openpam_get_option 3 ,
6946acc370SDag-Erling Smørgrav.Xr pam 3 ,
7046acc370SDag-Erling Smørgrav.Xr pam_strerror 3
7146acc370SDag-Erling Smørgrav.Sh STANDARDS
7246acc370SDag-Erling SmørgravThe
73*2f3ed619SDag-Erling Smørgrav.Fn openpam_set_option
7446acc370SDag-Erling Smørgravfunction is an OpenPAM extension.
7546acc370SDag-Erling Smørgrav.Sh AUTHORS
7646acc370SDag-Erling SmørgravThe
77*2f3ed619SDag-Erling Smørgrav.Fn openpam_set_option
78*2f3ed619SDag-Erling Smørgravfunction and this manual page were
79*2f3ed619SDag-Erling Smørgravdeveloped for the
80ca236e63SDag-Erling Smørgrav.Fx
81*2f3ed619SDag-Erling SmørgravProject by ThinkSec AS and Network Associates Laboratories, the
829bc006deSDag-Erling SmørgravSecurity Research Division of Network Associates, Inc.\& under
83ca236e63SDag-Erling SmørgravDARPA/SPAWAR contract N66001-01-C-8035
8446acc370SDag-Erling Smørgrav.Pq Dq CBOSS ,
8546acc370SDag-Erling Smørgravas part of the DARPA CHATS research program.
86