man-pages/man8/pam_debug.8.html
2021-03-31 01:06:50 +01:00

211 lines
4.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of PAM_DEBUG</TITLE>
</HEAD><BODY>
<H1>PAM_DEBUG</H1>
Section: Linux-PAM Manual (8)<BR>Updated: 05/18/2017<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
pam_debug - PAM module to debug the PAM stack
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>pam_debug.so</B> [auth=<I>value</I>] [cred=<I>value</I>] [acct=<I>value</I>] [prechauthtok=<I>value</I>] [chauthtok=<I>value</I>] [auth=<I>value</I>] [open_session=<I>value</I>] [close_session=<I>value</I>]
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<DD>The pam_debug PAM module is intended as a debugging aide for determining how the PAM stack is operating. This module returns what its module arguments tell it to return.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
<B>auth=</B><B></B><I>value</I>
<DL COMPACT><DT id="2"><DD>
The
<B><A HREF="/cgi-bin/man/man2html?3+pam_sm_authenticate">pam_sm_authenticate</A></B>(3)
function will return
<I>value</I>.
</DL>
<P>
<B>cred=</B><B></B><I>value</I>
<DL COMPACT><DT id="3"><DD>
The
<B><A HREF="/cgi-bin/man/man2html?3+pam_sm_setcred">pam_sm_setcred</A></B>(3)
function will return
<I>value</I>.
</DL>
<P>
<B>acct=</B><B></B><I>value</I>
<DL COMPACT><DT id="4"><DD>
The
<B><A HREF="/cgi-bin/man/man2html?3+pam_sm_acct_mgmt">pam_sm_acct_mgmt</A></B>(3)
function will return
<I>value</I>.
</DL>
<P>
<B>prechauthtok=</B><B></B><I>value</I>
<DL COMPACT><DT id="5"><DD>
The
<B><A HREF="/cgi-bin/man/man2html?3+pam_sm_chauthtok">pam_sm_chauthtok</A></B>(3)
function will return
<I>value</I>
if the
<I>PAM_PRELIM_CHECK</I>
flag is set.
</DL>
<P>
<B>chauthtok=</B><B></B><I>value</I>
<DL COMPACT><DT id="6"><DD>
The
<B><A HREF="/cgi-bin/man/man2html?3+pam_sm_chauthtok">pam_sm_chauthtok</A></B>(3)
function will return
<I>value</I>
if the
<I>PAM_PRELIM_CHECK</I>
flag is
<B>not</B>
set.
</DL>
<P>
<B>open_session=</B><B></B><I>value</I>
<DL COMPACT><DT id="7"><DD>
The
<B><A HREF="/cgi-bin/man/man2html?3+pam_sm_open_session">pam_sm_open_session</A></B>(3)
function will return
<I>value</I>.
</DL>
<P>
<B>close_session=</B><B></B><I>value</I>
<DL COMPACT><DT id="8"><DD>
The
<B><A HREF="/cgi-bin/man/man2html?3+pam_sm_close_session">pam_sm_close_session</A></B>(3)
function will return
<I>value</I>.
</DL>
<P>
Where
<I>value</I>
can be one of: success, open_err, symbol_err, service_err, system_err, buf_err, perm_denied, auth_err, cred_insufficient, authinfo_unavail, user_unknown, maxtries, new_authtok_reqd, acct_expired, session_err, cred_unavail, cred_expired, cred_err, no_module_data, conv_err, authtok_err, authtok_recover_err, authtok_lock_busy, authtok_disable_aging, try_again, ignore, abort, authtok_expired, module_unknown, bad_item, conv_again, incomplete.
<A NAME="lbAF">&nbsp;</A>
<H2>MODULE TYPES PROVIDED</H2>
<P>
All module types (<B>auth</B>,
<B>account</B>,
<B>password</B>
and
<B>session</B>) are provided.
<A NAME="lbAG">&nbsp;</A>
<H2>RETURN VALUES</H2>
<P>
PAM_SUCCESS
<DL COMPACT><DT id="9"><DD>
Default return code if no other value was specified, else specified return value.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>EXAMPLES</H2>
<P>
<DL COMPACT><DT id="10"><DD>
<PRE>
auth requisite pam_permit.so
auth [success=2 default=ok] pam_debug.so auth=perm_denied cred=success
auth [default=reset] pam_debug.so auth=success cred=perm_denied
auth [success=done default=die] pam_debug.so
auth optional pam_debug.so auth=perm_denied cred=perm_denied
auth sufficient pam_debug.so auth=success cred=success
</PRE>
</DL>
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?5+pam.conf">pam.conf</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?5+pam.d">pam.d</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?7+pam">pam</A></B>(7)
<A NAME="lbAJ">&nbsp;</A>
<H2>AUTHOR</H2>
<P>
pam_debug was written by Andrew G. Morgan &lt;<A HREF="mailto:morgan@kernel.org">morgan@kernel.org</A>&gt;.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="11"><A HREF="#lbAB">NAME</A><DD>
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="14"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="15"><A HREF="#lbAF">MODULE TYPES PROVIDED</A><DD>
<DT id="16"><A HREF="#lbAG">RETURN VALUES</A><DD>
<DT id="17"><A HREF="#lbAH">EXAMPLES</A><DD>
<DT id="18"><A HREF="#lbAI">SEE ALSO</A><DD>
<DT id="19"><A HREF="#lbAJ">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:14 GMT, March 31, 2021
</BODY>
</HTML>