pam_get_user 子例程返回当前存储在 PAM 句柄 pamh中的用户名。 如果尚未通过 pam_start () 或pam_set_item ()设置用户名,那么子例程将显示由 prompt指定的字符串,以通过对话函数提示输入用户名。 如果 prompt 为NULL ,那么将使用通过调用 pam_set_item () 设置的 PAM_USER_PROMPT 值。 如果 prompt 和PAM...
The pam_get_user() function is used by PAM service modules to retrieve the current user name from the PAM handle. If the user name has not been set with pam_start()...
int pam_get_user(pam_handle_t *pamh, char **user, const char *prompt); DESCRIPTION Thepam_get_user()function is used by PAM service modules to retrieve the current user name from the PAM handle. If the user name has not been set withpam_start()orpam_set_item(), the PAM conversati...
PAM Library (libpam.a) Syntax #include <security/pam_appl.h>int pam_get_user (pam_handle_t *pamh,char **user,const char *prompt); Description Thepam_get_usersubroutine returns the user name currently stored in the PAM handle,pamh. If the user name has not already been set throughpam...
#include <security/pam_appl.h>int pam_get_user (pam_handle_t *pamh,char **user,const char *prompt); Descriptif La sous-routinepam_get_userrenvoie le nom d'utilisateur actuellement stocké dans le descripteur PAM,pamh. Si le nom d'utilisateur n'a pas encore été défini viapam_start ...