PAM-Modules |
|
A Collection of Modules for PAM |
Sergey Poznyakoff |
The package provides two modules for SQL authentication
and session management: pam_mysql
, for MySQL and
pam_pgsql
for PostgreSQL. Both modules share the same set
of options and provide similar functionality.
Connecting to an SQL database requires a set of credentials that cannot be conveniently passed via the command line. Therefore, both SQL modules use a special configuration file to obtain the necessary data. By default, this file is located in the system configuration directory (usually, /usr/local/etc), and is named pam_sql.conf. However, another location can be specified in the command line, using config command line option.
The command line options understood by both modules are:
Read SQL access credentials from the given file.
Do not prompt the user for password, take it from the saved authentication tokens. This option is useful when this module is not the first in the stack of authentication modules.
This document was generated on August 11, 2021 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.