Linux.pl
Opcje wyszukiwania podręcznika man:
Lista stron man zaczynających się od znaku:
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   ALPHA   NUM   OTHER   ALL
PAM_GET_USER(3)                Linux-PAM Manual                PAM_GET_USER(3)

NAME
       pam_get_user - get user name

SYNOPSIS
       #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_start(3). 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_conv(3) mechanism, it prompts the user with
       the first non-NULL string in the following list:

       o   The prompt argument passed to the function.

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

       o   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.

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_end(3), pam_get_item(3), pam_set_item(3), pam_strerror(3)

Linux-PAM Manual                  09/03/2021                   PAM_GET_USER(3)

Czas wygenerowania: 0.00039 sek.


Created with the man page lookup class by Andrew Collington.
Based on a C man page viewer by Vadim Pavlov
Unicode soft-hyphen fix (as used by RedHat) by Dan Edwards
Some optimisations by Eli Argon
Caching idea and code contribution by James Richardson

Copyright © 2003-2025 Linux.pl
Hosted by Hosting Linux.pl