pam_start(3) -- Linux man page
pam_start, pam_end - activating Linux-PAM
int pam_start(const char *service, const char *user, const struct pam_conv *conv, pam_handle_t **pamh_p);
int pam_end(pam_handle_t *pamh, int pam_status);
library. Identifying the application with a particular
can take the value
if not known at the time the interface is initialized. The
conversation structure is passed to the library via the
argument. (For a complete description of this and other structures
the reader is directed to the more verbose
application developers' guide). Upon successful initialization, an
opaque pointer-handle for future access to the library is returned
through the contents of the
library. The service application associated with the
handle, is terminated. The argument,
passes the value most recently returned to the application from the
library; it indicates the manner in which the library should be
shutdown. Besides carrying a return value, this argument may be
logically OR'd with
to indicate that the module should not treat the call too
seriously. It is generally used to indicate that the current closing
of the library is in a
process, and that the parent will take care of cleaning up things that
exist outside of the current process space (files etc.).
ERRORSMay be translated to text with pam_strerror(3).
CONFORMING TODCE-RFC 86.0, October 1995.
Note, the PAM_DATA_SILENT flag is pending acceptance with the DCE (as of 1996/12/4).
Also, see the three Linux-PAM Guides, for System administrators, module developers, and application developers.