pam_get_user man page on Archlinux

Man page or keyword search:  
man Server   11224 pages
apropos Keyword Search (all sections)
Output format
Archlinux logo
[printable version]

PAM_GET_USER(3)		       Linux-PAM Manual		       PAM_GET_USER(3)

       pam_get_user - get user name

       #include <security/pam_modules.h>

       int pam_get_user(const pam_handle_t *pamh, const char **user,
			const char *prompt);

       The pam_get_user function returns the name of the user specified by
       pam_start(3). If no user was specified it what pam_get_item (pamh,
       PAM_USER, ... ); would have returned. If this is NULL it obtains the
       username via the pam_conv(3) mechanism, it prompts the user with the
       first non-NULL string in the following list:

       ·   The prompt argument passed to the function.

       ·   What is returned by pam_get_item (pamh, PAM_USER_PROMPT, ... );

       ·   The default prompt: "login: "

       By whatever means the username is obtained, a pointer to it is returned
       as the contents of *user. Note, this memory should not be free()'d or
       modified by the module.

       This function sets the PAM_USER item associated with the
       pam_set_item(3) and pam_get_item(3) functions.

	   User name was successful retrieved.

	   A NULL pointer was submitted.

	   The conversation method supplied by the application failed to
	   obtain the username.

       pam_end(3), pam_get_item(3), pam_set_item(3), pam_strerror(3)

Linux-PAM Manual		  09/19/2013		       PAM_GET_USER(3)

List of man pages available for Archlinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net