2022-10-25 22:29:41 +08:00
|
|
|
<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="pam_sm_open_session">
|
2006-06-19 23:38:33 +08:00
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>pam_sm_open_session</refentrytitle>
|
|
|
|
<manvolnum>3</manvolnum>
|
2022-10-25 22:29:41 +08:00
|
|
|
<refmiscinfo class="source">Linux-PAM</refmiscinfo>
|
|
|
|
<refmiscinfo class="manual">Linux-PAM Manual</refmiscinfo>
|
2006-06-19 23:38:33 +08:00
|
|
|
</refmeta>
|
|
|
|
|
2022-10-25 22:29:41 +08:00
|
|
|
<refnamediv xml:id="pam_sm_open_session-name">
|
2006-06-19 23:38:33 +08:00
|
|
|
<refname>pam_sm_open_session</refname>
|
2006-06-28 15:22:40 +08:00
|
|
|
<refpurpose>PAM service function to start session management</refpurpose>
|
2006-06-19 23:38:33 +08:00
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<!-- body begins here -->
|
|
|
|
|
2006-06-28 15:22:40 +08:00
|
|
|
<refsynopsisdiv>
|
2022-10-25 22:29:41 +08:00
|
|
|
<funcsynopsis xml:id="pam_sm_open_session-synopsis">
|
2006-06-19 23:38:33 +08:00
|
|
|
<funcsynopsisinfo>#include <security/pam_modules.h></funcsynopsisinfo>
|
|
|
|
<funcprototype>
|
2016-03-29 20:14:03 +08:00
|
|
|
<funcdef>int <function>pam_sm_open_session</function></funcdef>
|
2006-06-19 23:38:33 +08:00
|
|
|
<paramdef>pam_handle_t *<parameter>pamh</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter>flags</parameter></paramdef>
|
|
|
|
<paramdef>int <parameter>argc</parameter></paramdef>
|
|
|
|
<paramdef>const char **<parameter>argv</parameter></paramdef>
|
|
|
|
</funcprototype>
|
|
|
|
</funcsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
|
2022-10-25 22:29:41 +08:00
|
|
|
<refsect1 xml:id="pam_sm_open_session-description">
|
2006-06-19 23:38:33 +08:00
|
|
|
<title>DESCRIPTION</title>
|
|
|
|
<para>
|
|
|
|
The <function>pam_sm_open_session</function> function is the service
|
|
|
|
module's implementation of the
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>pam_open_session</refentrytitle><manvolnum>3</manvolnum>
|
|
|
|
</citerefentry> interface.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
This function is called to commence a session. The only valid
|
2022-10-25 22:29:41 +08:00
|
|
|
value for <varname role="parameter">flags</varname> is zero or:
|
2006-06-19 23:38:33 +08:00
|
|
|
</para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>PAM_SILENT</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Do not emit any messages.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
2022-10-25 22:29:41 +08:00
|
|
|
<refsect1 xml:id="pam_sm_open_session-return_values">
|
2006-06-19 23:38:33 +08:00
|
|
|
<title>RETURN VALUES</title>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>PAM_SESSION_ERR</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Cannot make/remove an entry for the specified session.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>PAM_SUCCESS</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The session was successfully started.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
2022-10-25 22:29:41 +08:00
|
|
|
<refsect1 xml:id="pam_sm_open_session-see_also">
|
2006-06-19 23:38:33 +08:00
|
|
|
<title>SEE ALSO</title>
|
|
|
|
<para>
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>pam</refentrytitle><manvolnum>3</manvolnum>
|
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>pam_open_session</refentrytitle><manvolnum>3</manvolnum>
|
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>pam_sm_close_session</refentrytitle><manvolnum>3</manvolnum>
|
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>pam_strerror</refentrytitle><manvolnum>3</manvolnum>
|
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>PAM</refentrytitle><manvolnum>8</manvolnum>
|
|
|
|
</citerefentry>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2022-10-25 22:29:41 +08:00
|
|
|
</refentry>
|