From 9ada0093e92388590c7368600ca4e9e3e376f0d0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:22:51 +0200 Subject: Adding upstream version 1.5.2. Signed-off-by: Daniel Baumann --- doc/man/pam_get_user.3.xml | 164 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 doc/man/pam_get_user.3.xml (limited to 'doc/man/pam_get_user.3.xml') diff --git a/doc/man/pam_get_user.3.xml b/doc/man/pam_get_user.3.xml new file mode 100644 index 0000000..8bb176e --- /dev/null +++ b/doc/man/pam_get_user.3.xml @@ -0,0 +1,164 @@ + + + + + + + pam_get_user + 3 + Linux-PAM Manual + + + + 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 + + + + + + + + DESCRIPTION + + The pam_get_user function returns the + name of the user specified by + + pam_start3 + . If no user was specified it returns what + pam_get_item (pamh, PAM_USER, ... ); would + have returned. If this is NULL it obtains the username via the + + pam_conv3 + 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_item3 + and + + pam_get_item3 + functions. + + + + + RETURN VALUES + + + PAM_SUCCESS + + + User name was successful retrieved. + + + + + PAM_SYSTEM_ERR + + + A NULL pointer was submitted. + + + + + PAM_CONV_ERR + + + The conversation method supplied by the + application failed to obtain the username. + + + + + PAM_BUF_ERR + + + Memory buffer error. + + + + + PAM_ABORT + + + Error resuming an old conversation. + + + + + PAM_CONV_AGAIN + + + The conversation method supplied by the application + is waiting for an event. + + + + + + + + SEE ALSO + + + pam_end3 + , + + pam_get_item3 + , + + pam_set_item3 + , + + pam_strerror3 + + + + + -- cgit v1.2.3