PAM_AUTHENTICATESection: App. Programmers' Manual (3)Updated: 1996 Dec 9 |
PAM_AUTHENTICATESection: App. Programmers' Manual (3)Updated: 1996 Dec 9 |
pam_authenticate - authenticate a user
int pam_authenticate(pam_handle_t *pamh, int flags);
Use this function to authenticate an applicant user. It is linked
dynamically
to the authentication modules by
Linux-PAM.
It is the task of these module to perform such an authentication. The
specific nature of the authentication is not the concern of the
application.
Following successful completion, the
name
of the authenticated user will be present in the
Linux-PAM
item
PAM_USER.
This item may be recovered with a call to
pam_get_item(3).
The application developer should note that the modules may request
that the user enter their username via the conversation mechanism (see
pam_start(3)).
Should this be the case, the user-prompt string can be set via
the
PAM_USER_PROMPT
item (see
pam_set_item(3)).
none known.
pam_start(3), pam_get_item(3) pam_fail_delay(3) and pam_strerror(3).
Also, see the three Linux-PAM Guides, for System administrators, module developers, and application developers.