Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

openpam_get_feature(3) [freebsd man page]

OPENPAM_GET_FEATURE(3)					   BSD Library Functions Manual 				    OPENPAM_GET_FEATURE(3)

NAME
openpam_get_feature -- query the state of an optional feature LIBRARY
Pluggable Authentication Module Library (libpam, -lpam) SYNOPSIS
#include <sys/types.h> #include <security/pam_appl.h> #include <security/openpam.h> int openpam_get_feature(int feature, int *onoff); DESCRIPTION
This function is experimental and may be modified or removed in a future release without prior warning. The openpam_get_feature() function stores the current state of the specified feature in the variable pointed to by its onoff argument. The following features are recognized: OPENPAM_RESTRICT_SERVICE_NAME Disallow path separators in service names. This feature is enabled by default. Disabling it allows the application to specify the path to the desired policy file directly. OPENPAM_VERIFY_POLICY_FILE Verify the ownership and permissions of the policy file and the path leading up to it. This feature is enabled by default. OPENPAM_RESTRICT_MODULE_NAME Disallow path separators in module names. This feature is disabled by default. Enabling it prevents the use of modules in non-standard locations. OPENPAM_VERIFY_MODULE_FILE Verify the ownership and permissions of each loadable module and the path leading up to it. This feature is enabled by default. RETURN VALUES
The openpam_get_feature() function returns one of the following values: [PAM_SYMBOL_ERR] Invalid symbol. SEE ALSO
openpam_set_feature(3), pam(3), pam_strerror(3) STANDARDS
The openpam_get_feature() function is an OpenPAM extension. AUTHORS
The openpam_get_feature() function and this manual page were developed by Dag-Erling Smorgrav <des@des.no>. BSD
September 12, 2014 BSD

Check Out this Related Man Page

OPENPAM_SET_OPTION(3)					   BSD Library Functions Manual 				     OPENPAM_SET_OPTION(3)

NAME
openpam_set_option -- sets the value of a module option LIBRARY
Pluggable Authentication Module Library (libpam, -lpam) SYNOPSIS
#include <sys/types.h> #include <security/pam_appl.h> #include <security/openpam.h> int openpam_set_option(pam_handle_t *pamh, const char *option, const char *value); DESCRIPTION
The openpam_set_option() function sets the specified option in the context of the currently executing service module. RETURN VALUES
The openpam_set_option() function returns one of the following values: [PAM_BUF_ERR] Memory buffer error. [PAM_SYSTEM_ERR] System error. SEE ALSO
openpam_get_option(3), pam(3), pam_strerror(3) STANDARDS
The openpam_set_option() function is an OpenPAM extension. AUTHORS
The openpam_set_option() function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laborato- ries, the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program. The OpenPAM library is maintained by Dag-Erling Smorgrav <des@des.no>. BSD
September 12, 2014 BSD
Man Page