PAM-Modules |
|
A Collection of Modules for PAM |
Sergey Poznyakoff |
Configuration file has a simple line-oriented syntax. Empty lines and lines beginning with ‘#’ are ignored. Nonempty lines consist of a keyword and its value, separated by any amount of white space.
Long statements can be split over several lines by placing ‘\’ character at the end of each line, e.g.:
query select password \ from users \ where user_name='$user'
Basic configuration statements provide SQL credentials needed for accessing the database:
host hostname
Sets hostname or IP address of the machine where the database is
running. If the database is only listening on the local socket
(--skip-networking for MySQL, or lack of -i for
PostgreSQL), then host
should be the name of the local socket.
port number
Sets the SQL port number. This statement is optional. Use it only if your database is running on a port different from the standard.
db database
Sets database name.
login string
Sets SQL user name.
pass password
Sets SQL user password.
default-file file
Name of the MySQL default file, which should be consulted in order to obtain connection parameters and credentials. When specified, the keywords described above become optional.
default-group name
Name of the group in MySQL default file to use. Default is
‘mysql’. This keyword is meaningful only if default-file
is given.
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.