Man page - pam_get_item(3)
Packages contas this manual
- pam_putenv(3)
- pam_strerror(3)
- pam(3)
- pam_sm_setcred(3)
- pam_get_authtok(3)
- pam_error(3)
- pam_sm_acct_mgmt(3)
- pam_getenv(3)
- pam_conv(3)
- pam_start(3)
- pam_get_data(3)
- pam_sm_close_session(3)
- pam_prompt(3)
- pam_close_session(3)
- pam_setcred(3)
- pam_info(3)
- pam_get_authtok_noverify(3)
- pam_set_data(3)
- pam_xauth_data(3)
- pam_end(3)
- pam_open_session(3)
- pam_vinfo(3)
- pam_get_item(3)
- pam_getenvlist(3)
- pam_get_user(3)
- misc_conv(3)
- pam_vprompt(3)
- pam_vsyslog(3)
- pam_syslog(3)
- pam_fail_delay(3)
- pam_chauthtok(3)
- pam_acct_mgmt(3)
- pam_sm_chauthtok(3)
- pam_get_authtok_verify(3)
- pam_sm_open_session(3)
- pam_misc_setenv(3)
- pam_verror(3)
- pam_sm_authenticate(3)
- pam_authenticate(3)
- pam_misc_drop_env(3)
- pam_set_item(3)
- pam_misc_paste_env(3)
apt-get install libpam-doc
Manual
| PAM_GET_ITEM(3) | Linux-PAM Manual | PAM_GET_ITEM(3) |
NAME
pam_get_item - getting PAM information
SYNOPSIS
#include <security/pam_modules.h>
int pam_get_item(const pam_handle_t *pamh, int item_type, const void **item);
DESCRIPTION
The pam_get_item function allows applications and PAM service modules to access and retrieve PAM information of item_type. Upon successful return, item contains a pointer to the value of the corresponding item. Note, this is a pointer to the actual data and should not be free()'ed or over-written! The following values are supported for item_type:
PAM_SERVICE
PAM_USER
PAM_USER_PROMPT
PAM_TTY
PAM_RUSER
Generally an application or module will attempt to supply the value that is most strongly authenticated (a local account before a remote one. The level of trust in this value is embodied in the actual authentication stack associated with the application, so it is ultimately at the discretion of the system administrator.
PAM_RUSER@PAM_RHOST should always identify the requesting user. In some cases, PAM_RUSER may be NULL. In such situations, it is unclear who the requesting entity is.
PAM_RHOST
PAM_AUTHTOK
PAM_OLDAUTHTOK
PAM_CONV
The following additional items are specific to Linux-PAM and should not be used in portable applications:
PAM_FAIL_DELAY
PAM_XDISPLAY
PAM_XAUTHDATA
PAM_AUTHTOK_TYPE
If a service module wishes to obtain the name of the user, it should not use this function, but instead perform a call to pam_get_user(3).
Only a service module is privileged to read the authentication tokens, PAM_AUTHTOK and PAM_OLDAUTHTOK.
RETURN VALUES
PAM_BAD_ITEM
PAM_BUF_ERR
PAM_PERM_DENIED
PAM_SUCCESS
PAM_SYSTEM_ERR
SEE ALSO
pam_set_item(3), pam_strerror(3)
| 06/29/2025 | Linux-PAM |