Next: Using libmuauth in Your Programs, Previous: Obtaining Authorization Information, Up: libmuauth
The “not-supported” module. Always returns
ENOSYS
.
This module is always registered even if libmuauth is not linked. It performs usual authentication using system user database (/etc/password et al.)
This module is always registered even if libmuauth is not linked. Both its authorization handlers are
mu_auth_nosupport
. Its authentication handler computes the MD5 or DES hash over the supplied password with the seed taken frompasswd
member of its key argument. Then it compares the obtained hash with thepasswd
member itself and returns 1 if both strings match.
Implements PAM authentication. Both authorization handlers are
mu_auth_nosupport()
.
Implements authentication and authorization via MySQL database. The credentials for accessing the database are taken from global variables
sql_host
,sql_port
,sql_user
,sql_passwd
andsql_db
. The SQL queries for retrieving user information from global variablessql_getpwnam_query
andsql_getpwuid_query
. The variablesql_getpass_query
keeps the query used for retrieving user's password. See auth, for information on command line options used to set these variables.