Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pam_get_user(3) [hpux man page]

pam_get_user(3) 					     Library Functions Manual						   pam_get_user(3)

NAME
pam_get_user - PAM routine to retrieve user name. SYNOPSIS
[ flag ... ] file ... [ library ... ] DESCRIPTION
is used by PAM service modules to retrieve the current user name from the PAM handle. If the user name has not been set, via or then the PAM conversation function will be used to prompt the user for the user name with the string "prompt". If prompt is NULL, then is called and the value of is used for prompting. If the value of is NULL, the following default prompt is used: After the user name is gathered by the conversation function, is called to set the value of By convention, applications that need to prompt for a user name should call and set the value of before calling The service module's func- tion will then call to prompt for the user name. Note that certain PAM service modules (such as a smart card module) may override the value of and pass in their own prompt. Applications that call multiple times should set the value of to NULL with before calling if they want the user to be prompted for a new user name each time. The value of user retrieved by should not be modified or freed. The item will be released by APPLICATION USAGE
Refer to pam(3) for information on thread-safety of PAM interfaces. RETURN VALUES
Upon success, returns otherwise it returns an error code. Refer to pam(3) for information on error related return values. SEE ALSO
pam(3), pam_start(3), pam_authenticate(3), pam_get_item(3), pam_set_item(3), pam_sm(3), pam_sm_authenticate(3), pam_end(3). pam_get_user(3)

Check Out this Related Man Page

pam_set_item(3) 					     Library Functions Manual						   pam_set_item(3)

NAME
pam_set_item, pam_get_item - authentication information routines for PAM SYNOPSIS
[ flag ... ] file ... [ library ... ] DESCRIPTION
and allow applications and PAM service modules to access and update PAM information as needed. The information is specified by item_type, and can be one of the following: The service name. The user name. The user authentication token. The old user authentication token. The tty name. The remote host name. The remote user name. The pam_conv structure. The default prompt used by The item_type and are available only to the module providers for security reasons. The authentication module, account module, and session management module should treat as the current authentication token, and should ignore The password management module should treat as the current authentication token and as the new authentication token. is passed the authentication handle, pamh, returned by a pointer to the object, item, and its type, item_type. If successful, copies the item to an internal storage area allocated by the authentication module and returns An item that had been previously set will be overwrit- ten by the new value. is passed the authentication handle, pamh, returned by an item_type, and the address of the pointer, item, which is assigned the address of the requested object. The object data is valid until modified by a subsequent call to for the same item_type, or unless it is modified by any of the underlying service modules. If the item has not been previously set, returns a NULL pointer. An item retrieved by should not be modified or freed. The item will be released by APPLICATION USAGE
Refer to pam(3) for information on thread-safety of PAM interfaces. RETURN VALUES
Upon success, returns otherwise it returns an error code. Refer to pam(3) for information on error related return values. SEE ALSO
pam_start(3), pam_authenticate(3), pam_acct_mgmt(3), pam_open_session(3), pam_setcred(3), pam_chauthtok(3), pam_get_user(3), pam(3). pam_set_item(3)
Man Page