OPENPAM_NULLCONV(3)

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

πŸ’… openpam_nullconv(3) β€” null conversation function ✨

okay bestie, we’re in the Library Functions Manual and this page is all about openpam_nullconv(3) β€” the null conversation function. it’s giving β€œno dialog, no drama” energy 🫢.


πŸŽ€ NAME πŸŽ€

openpam_nullconv β€” null conversation function. literally the icon of not asking the user anything πŸ’….


🌸 SYNOPSIS 🌸

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

int
openpam_nullconv(int n, const struct pam_message **msg,
    struct pam_response **resp, void *data);

✨ DESCRIPTION ✨

so like, the openpam_nullconv() function is a null conversation function β€” and it’s perfect for applications that want to use PAM but don’t support interactive dialog with the user. no cap, that’s the whole vibe 😌.

those applications should set PAM_AUTHTOK to whatever authentication token they’ve obtained on their own before calling pam_authenticate(3) and / or pam_chauthtok(3). and their PAM configuration should specify the use_first_pass option for all modules that require access to the authentication token, to make sure they use PAM_AUTHTOK rather than try to query the user. periodt πŸ’–.


πŸ”₯ RETURN VALUES πŸ”₯

the openpam_nullconv() function returns one of the following values:

  • PAM_SUCCESS β€” success. slay ✨
  • PAM_CONV_ERR β€” conversation failure. oof 😭

πŸ¦‹ SEE ALSO πŸ¦‹

go read these too, bestie β€” they’re all part of the lore:


πŸ‘‘ STANDARDS πŸ‘‘

the openpam_nullconv() function is an OpenPAM extension. that’s it, that’s the standard πŸ’….


🌈 AUTHORS 🌈

so the openpam_nullconv() function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories β€” 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. iconic research behavior fr fr 🧚.

the OpenPAM library is maintained by Dag-Erling Smørgrav <des@des.no>. we love a maintainer 🫢.


xoxo bestie πŸ’– β€” this page is from Debian, dated June 27, 2023, and it’s serving OPENPAM_NULLCONV(3) energy βœ¨πŸ‘‘

πŸ“¦ where this page comes from