Manual Page Search Parameters
openpam_set_feature(3) enable or disable an optional feature
openpam, openpam_borrow_cred, openpam_free_data, openpam_free_envlist, openpam_get_feature, openpam_get_option, openpam_log, openpam_nullconv, openpam_readline, openpam_readlinev, openpam_readword, openpam_restore_cred, openpam_set_feature, openpam_set_option, openpam_straddch, openpam_subst, openpam_ttyconv, pam_error, pam_get_authtok, pam_info, pam_prompt, pam_setenv, pam_verror, pam_vinfo, pam_vprompt(3) Pluggable Authentication Modules Library

OPENPAM_SET_FEATURE(3) MidnightBSD Library Functions Manual OPENPAM_SET_FEATURE(3)

openpam_set_featureenable or disable an optional feature

#include <sys/types.h>
#include <security/pam_appl.h>
#include <security/openpam.h>

int
openpam_set_feature(int feature, int onoff);

This function is experimental and may be modified or removed in a future release without prior warning.

The () function sets the state of the specified feature to the value specified by the onoff argument. See openpam_get_feature(3) for a list of recognized features.

The openpam_set_feature() function returns one of the following values:

[PAM_SUCCESS]
Success.
[PAM_BAD_FEATURE]
Unrecognized or restricted feature.

openpam_get_feature(3), pam(3), pam_strerror(3)

The openpam_set_feature() function is an OpenPAM extension.

The openpam_set_feature() function and this manual page were developed by Dag-Erling Smørgrav <des@des.no>.

February 24, 2019 midnightbsd-3.1