The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

pam_get_user (3)
  • pam_get_user (3) ( Solaris man: Библиотечные вызовы )
  • pam_get_user (3) ( FreeBSD man: Библиотечные вызовы )
  • >> pam_get_user (3) ( Linux man: Библиотечные вызовы )
  •  

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

    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.
     

    SEE ALSO

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


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    SEE ALSO


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру