OPENPAM_SET_FEATURE(3)

πŸ“¦
version 14.5 Β· 2 versions
, in freebsd 14.5, nixos 26.05, nixpkgs unstable

πŸ’… OPENPAM_SET_FEATURE(3) β€” the openpam_set_feature manual page, bestie edition πŸŽ€

okay so real talk, this is a page from the Library Functions Manual and it's all about openpam_set_feature from OpenPAM. buckle up, it's short but it's iconic ✨


🌸 NAME 🌸

openpam_set_feature β€” turn an optional feature ON or OFF, no cap 🎚️

πŸ¦‹ SYNOPSIS πŸ¦‹

like, here's literally exactly how you call it:

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

int
openpam_set_feature(int feature, int onoff);

πŸ’– DESCRIPTION πŸ’–

⚠️ bestie, heads up: this function is experimental and may be modified or removed in a future release without prior warning. it's giving "living on the edge" energy, so don't build your whole personality on it πŸ’€

so the way openpam_set_feature() works is: it sets the state of the feature you name in the feature argument to whatever value you pass in onoff. that's it, that's the whole vibe ✨

want the list of recognized features? that lives over in openpam_get_feature(3) β€” go look there, iykyk 🫢

πŸ‘‘ RETURN VALUES πŸ‘‘

openpam_set_feature() returns exactly one of these, periodt:

  • [PAM_SUCCESS] β€” slay πŸ’… it worked, success.
  • [PAM_BAD_FEATURE] β€” the feature is unrecognized or restricted πŸ™ˆ so like, nope, not that one.

🌈 SEE ALSO 🌈

go read these too, they're all part of the family:

⭐ STANDARDS ⭐

openpam_set_feature() is an OpenPAM extension β€” it's not some universal standard thing, it's OpenPAM's own little invention πŸ’œ

πŸ“ AUTHORS πŸ“

the openpam_set_feature() function and this very manual page were developed by Dag-Erling SmΓΈrgrav <des@des.no> β€” king behaviour, we love to see it πŸ‘‘


and that's the whole page bestie, hope it ate πŸ’– this particular copy comes to you from Debian, dated June 27, 2023 β€” catch you on the next man page, mwah 🧚✨

πŸ“¦ where this page comes from