HP-UX Reference (11i v2 03/08) - 4 File Formats (vol 8)

p
pam.conf(4) pam.conf(4)
NAME
pam.conf - configuration file for pluggable authentication modules
SYNOPSIS
/etc/pam.conf
DESCRIPTION
pam.conf is the configuration file for the Pluggable Authentication Module architecture, or PAM. A
PAM module provides functionality for one or more of four possible services: authentication, account
management , session management , and password management .
An authentication service module provides functionality to authenticate a user and set up user creden-
tials. An account management module provides functionality to determine if the current user’s account is
valid. This includes checking for password and account expiration, as well as verifying access hour res-
trictions. A session management module provides functionality to set up and terminate login sessions. A
password management module provides functionality to change a user’s authentication token or pass-
word.
Simplified PAM.CONF configuration file
The
pam.conf file contains a listing of services. Each service is paired with a corresponding service
module. When a service is requested, its associated module is invoked. Each entry has the following for-
mat:
service_name module_type control_flag module_path options
Below is an example of the
pam.conf configuration file with support for authentication, account
management, and session management modules.
login auth required /usr/lib/security/$ISA/libpam_unix.so.1 debug
login session required /usr/lib/security/$ISA/libpam_unix.so.1
login account required /usr/lib/security/$ISA/libpam_unix.so.1
dtlogin session required /usr/lib/security/$ISA/libpam_unix.so.1
other auth required /usr/lib/security/$ISA/libpam_unix.so.1
other password required /usr/lib/security/$ISA/libpam_unix.so.1
service_name The service_name denotes the service (for example,
login,ordtlogin). The keyword,
other, indicates the module all other applications which have not been specified should
use. The other keyword can also be used if all services of the same module_type have
the same requirements. In the example above, since all of the services use the same ses-
sion module, they could have been replaced by a single other line.
module_type module_type denotes the service module type: authentication (auth ), account manage-
ment (account ), session management (session ), or password management (password ).
control_flag The control_flag field determines the behavior of stacking, and will be discussed in more
detail below.
module_path The module_path field specifies the pathname to a shared library object which imple-
ments the service functionality. If the pathname is not absolute, it is assumed to be rela-
tive to
/usr/lib/security/$ISA/. The $ISA (i.e Instruction Set Architecture)
token is replaced by the PAM engine (libpam) with hpux32 for Itanium-based 32-bit
modules, or with null for PA-RISC 32-bit modules. To accomodate backward compatibil-
ity to PA-RISC library naming convention, appropriate links are provided in
/usr/lib/security/ Example: /usr/lib/security/libpam_unix.so.1 ->
./libpam_unix.1 If a user-defined module is specified in /etc/pam.conf
or
/etc/pam_user.conf, the above convention must be followed to create symbolic links
pointing to PA-RISC modules. It is recommended that libpam is used to parse
/etc/pam.conf. However, if an application reads /etc/pam.conf directly, it
should be able to parse the $ISA token and replace it with an appropriate directory
string.
options The options field is used by the PAM framework layer to pass module specific options to
the modules. It is up to the module to parse and interpret the options. This field can be
used by the modules to turn on debugging or to pass any module specific parameters such
as a TIMEOUT value. It can also be used to support unified login. The options sup-
ported by the modules are documented in their respective manual pages. For example,
pam_unix (5) lists the options accepted by the UNIX module.
HP-UX 11i Version 2: August 2003 1 Hewlett-Packard Company Section 4223