1 .\" Generated from pam_get_user.c by gendoc.pl
2 .\" $OpenPAM: pam_get_user.c 938 2017-04-30 21:34:42Z des $
11 .In security/pam_appl.h
13 .Fn pam_get_user "pam_handle_t *pamh" "const char **user" "const char *prompt"
17 function returns the name of the target user, as
20 If no user was specified, nor set using
23 will prompt for a user name.
24 Either way, a pointer to the user name is stored in the location
27 argument, and the corresponding PAM item is
32 argument specifies a prompt to use if no user name is
41 a hardcoded default prompt will be used.
44 is called from a service module, the
45 prompt may be affected by module options as described below.
46 The prompt is then expanded using
48 before it is passed to
49 the conversation function.
51 When called by a service module,
54 following module options:
57 Prompt to use when asking for the user name.
58 This option overrides both the
67 function returns one of the following values:
71 .It Bq Er PAM_BAD_ITEM
72 Unrecognized or restricted item.
75 .It Bq Er PAM_CONV_ERR
77 .It Bq Er PAM_SYSTEM_ERR
81 .Xr openpam_get_option 3 ,
85 .Xr pam_get_authtok 3 ,
92 .%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
98 function and this manual page were
101 Project by ThinkSec AS and Network Associates Laboratories, the
102 Security Research Division of Network Associates, Inc.\& under
103 DARPA/SPAWAR contract N66001-01-C-8035
105 as part of the DARPA CHATS research program.
107 The OpenPAM library is maintained by
108 .An Dag-Erling Sm\(/orgrav Aq Mt des@des.no .