path: root/doc/man/pam_get_user.3
diff options
authorThorsten Kukuk <>2006-02-17 19:16:12 +0000
committerThorsten Kukuk <>2006-02-17 19:16:12 +0000
commita6a981f6c746bf27da9fab021baee009c049d4d5 (patch)
tree378b18983e1ec7086b763b40db89c70957181870 /doc/man/pam_get_user.3
parentff43f9357a6a5e46990e56980677327df8f8cba6 (diff)
Relevant BUGIDs:
Purpose of commit: new feature Commit summary: --------------- More manual page updates/new manual pages 2006-02-17 Thorsten Kukuk <> * doc/man/ Add new manual pages. * doc/man/pam_end.3: Regenerated from xml file. * doc/man/pam_end.3.xml: Document freeing of item data. * doc/man/pam_get_user.3: New. * doc/man/pam_get_user.3.xml: New. * modules/pam_access/access.conf.5.xml: Fix typos. * modules/pam_env/ Add new manual pages. * modules/pam_env/README: Regenerate from xml file. * modules/pam_env/README.xml: New. * modules/pam_env/pam_env.8: New. * modules/pam_env/pam_env.8.xml: New. * modules/pam_env/pam_env.conf.5: New. * modules/pam_env/pam_env.conf.5.xml New.
Diffstat (limited to 'doc/man/pam_get_user.3')
1 files changed, 69 insertions, 0 deletions
diff --git a/doc/man/pam_get_user.3 b/doc/man/pam_get_user.3
new file mode 100644
index 00000000..a5bc9ebe
--- /dev/null
+++ b/doc/man/pam_get_user.3
@@ -0,0 +1,69 @@
+.\" ** You probably do not want to edit this file directly **
+.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
+.\" Instead of manually editing it, you probably should edit the DocBook XML
+.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
+.TH "PAM_GET_USER" "3" "02/14/2006" "Linux\-PAM Manual" "Linux\-PAM Manual"
+.\" disable hyphenation
+.\" disable justification (adjust text to left margin only) l
+pam_get_user \- get user name
+\fB#include <security/pam_modules.h>\fR
+.HP 17
+\fBint\ \fBpam_get_user\fR\fR\fB(\fR\fBconst\ pam_handle_t\ *\fR\fB\fIpamh\fR\fR\fB, \fR\fBconst\ char\ **\fR\fB\fIuser\fR\fR\fB, \fR\fBconst\ char\ *\fR\fB\fIprompt\fR\fR\fB);\fR
+function returns the name of the user specified by
+\fBpam_start\fR(3). If no user was specified it what
+\fBpam_get_item (pamh, PAM_USER, ... );\fR
+would have returned. If this is NULL it obtains the username via the
+mechanism, it prompts the user with the first non\-NULL string in the following list:
+.TP 3
+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
+\fI*user\fR. Note, this memory should
+\fIfree()\fR'd or
+by the module.
+This function sets the
+item associated with the
+User name was successful retrieved.
+A NULL pointer was submitted.
+The conversation method supplied by the application failed to obtain the username.