diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2006-02-12 22:24:34 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2006-02-12 22:24:34 +0000 |
commit | f7827ccfd255e23f285eb8aec7ddf71af94dd6ff (patch) | |
tree | 171eea4e7e13be3c8e5d2c4748db91b4244782bf /doc/man/pam_start.3.xml | |
parent | 2c388144eb7c68aa31c20c00f6c054c219bf72a2 (diff) |
Relevant BUGIDs:
Purpose of commit: cleanup
Commit summary:
---------------
Merge manual pages and sgml docu as xml, update them.
2006-02-12 Thorsten Kukuk <kukuk@thkukuk.de>
* configure.in: Add doc/man/Makefile.
* Make.xml.rules: Enable xincludes for manual pages.
* doc/Makefile.am (EXRA_DIST): Remove manual pages.
(SUBDIR): Add man subdirectory.
* doc/man/Makefile.am: New.
* doc/man/pam_acct_mgmt.3: New.
* doc/man/pam_acct_mgmt.3.xml: New.
* doc/man/pam_get_data.3: New.
* doc/man/pam_get_data.3.xml: New.
* doc/man/pam_set_data.3: New.
* doc/man/pam_set_data.3.xml: New.
* doc/man/pam.8.xml: New.
* doc/man/pam.8: Regenerated from xml file.
* doc/man/pam_authenticate.3.xml: New.
* doc/man/pam_authenticate.3: Regenerated from xml file.
* doc/man/pam_chauthtok.3.xml: New.
* doc/man/pam_chauthtok.3: Regenerated from xml file.
* doc/man/pam_close_session.3.xml: New.
* doc/man/pam_close_session.3: Regenerated from xml file.
* doc/man/pam_end.3.xml: New.
* doc/man/pam_end.3: Regenerated from xml file.
* doc/man/pam_fail_delay.3.xml: New.
* doc/man/pam_fail_delay.3: Regenerated from xml file.
* doc/man/pam_get_item.3.xml: New.
* doc/man/pam_get_item.3: Regenerated from xml file.
* doc/man/pam_item_types.inc.xml: New.
* doc/man/pam_open_session.3.xml: New.
* doc/man/pam_open_session.3: Regenerated from xml file.
* doc/man/pam_set_item.3.xml: New.
* doc/man/pam_set_item.3: Regenerated from xml file.
* doc/man/pam_setcred.3.xml: New.
* doc/man/pam_setcred.3: Regenerated from xml file.
* doc/man/pam_start.3.xml: New.
* doc/man/pam_start.3: Regenerated from xml file.
* doc/man/pam_strerror.3.xml: New.
* doc/man/pam_strerror.3: Regenerated from xml file.
* doc/man/template-man: Removed.
Diffstat (limited to 'doc/man/pam_start.3.xml')
-rw-r--r-- | doc/man/pam_start.3.xml | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/doc/man/pam_start.3.xml b/doc/man/pam_start.3.xml new file mode 100644 index 00000000..2850b15d --- /dev/null +++ b/doc/man/pam_start.3.xml @@ -0,0 +1,143 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" + "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> + +<refentry id='pam_start'> + + <refmeta> + <refentrytitle>pam_start</refentrytitle> + <manvolnum>3</manvolnum> + <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo> + </refmeta> + + <refnamediv id="pam_start-name"> + <refname>pam_start</refname> + <refpurpose>initialization of PAM transaction</refpurpose> + </refnamediv> + +<!-- body begins here --> + + <refsynopsisdiv id="pam_start-synopsis"> + <funcsynopsis> + <funcsynopsisinfo>#include <security/pam_appl.h></funcsynopsisinfo> + <funcprototype> + <funcdef>int <function>pam_start</function></funcdef> + <paramdef>const char *<parameter>service_name</parameter></paramdef> + <paramdef>const char *<parameter>user</parameter></paramdef> + <paramdef>const struct pam_conv *<parameter>pam_conversation</parameter></paramdef> + <paramdef>pam_handle_t **<parameter>pamh</parameter></paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + + + <refsect1 id="pam_start-description"> + <title>DESCRIPTION</title> + <para> + The <function>pam_start</function> function creates the PAM context + and initiates the PAM transaction. It is the first of the PAM + functions that needs to be called by an application. + </para> + + <para> + The <emphasis>service_name</emphasis> argument specifies the name + of the service to apply and will be stored as PAM_SERVICE item in + the new context. The policy for the service will be read from the + file <filename>/etc/pam.d/service_name</filename> or, if that file + does not exist, from <filename>/etc/pam.conf</filename>. + </para> + + <para> + The <emphasis>user</emphasis> argument can specify the name + of the target user and will be stored as PAM_USER item. If + the argument is NULL, the module has to ask for this item if + necessary. + </para> + + <para> + The <emphasis>pam_conversation</emphasis> argument points to + a <emphasis>struct pam_conv</emphasis> describing the + conversation function to use. An application must provide this + for direct communication between a loaded module and the + application. + </para> + + <para> + Following a successful return (PAM_SUCCESS) the contents of + <emphasis>pamh</emphasis> is a handle that contains the PAM + context for successive calls to the PAM functions. In an error + case is the content of <emphasis>pamh</emphasis> undefined. + </para> + + <para> + The <emphasis>pam_handle_t</emphasis> is a blind structure and + the application should not attempt to probe it directly for + information. Instead the PAM library provides the functions + <citerefentry> + <refentrytitle>pam_set_item</refentrytitle><manvolnum>3</manvolnum> + </citerefentry> and + <citerefentry> + <refentrytitle>pam_get_item</refentrytitle><manvolnum>3</manvolnum> + </citerefentry>. + The PAM handle cannot be used for mulitiple authentications at the + same time as long as <function>pam_end</function> was not called on + it before. + </para> + </refsect1> + <refsect1 id="pam_start-return_values"> + <title>RETURN VALUES</title> + <variablelist> + <varlistentry> + <term>PAM_ABORT</term> + <listitem> + <para> + General failure. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>PAM_BUF_ERR</term> + <listitem> + <para> + Memory buffer error. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>PAM_SUCCESS</term> + <listitem> + <para> + Transaction was successful created. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>PAM_SYSTEM_ERR</term> + <listitem> + <para> + System error, for example a NULL pointer was submitted + instead of a pointer to data. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1 id="pam_start-see_also"> + <title>SEE ALSO</title> + <para> + <citerefentry> + <refentrytitle>pam_get_data</refentrytitle><manvolnum>3</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam_set_data</refentrytitle><manvolnum>3</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam_end</refentrytitle><manvolnum>3</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam_strerror</refentrytitle><manvolnum>3</manvolnum> + </citerefentry> + </para> + </refsect1> +</refentry> |