openpam_set_feature(3)

openpam_set_feature3

Enable or disable an optional feature

Usage

#include <sys/types.h>

#include <security/pam_appl.h>

#include <security/openpam.h>

int

openpam_set_feature(int feature, int onoff);

Overview

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

The openpam_set_feature() 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.

Return values

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

[PAM_SUCCESS]

Success.

[PAM_BAD_FEATURE]

Unrecognized or restricted feature.

Releases

32 releases since FreeBSD 9.2-RELEASE; the text changed 7 times.

  1. 9.2
  2. 9.3–10.0
  3. 10.1–11.2
  4. 11.3–11.4
  5. 12.0–12.2
  6. 12.3–13.2
  7. 13.3–14.5
  8. 15.0–16.0

Standards

The openpam_set_feature() function is an OpenPAM extension.

Authors

The openpam_set_feature() function and this manual page were developed by Dag-Erling Smørgrav ⟨[email protected]⟩.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.