Node:Existing Modules, Next:, Previous:Obtaining Authorization Information, Up:libmuauth



Existing Modules

int mu_auth_nosupport (void *return_data, void *key, void *func_data, void *call_data); Function

The "not-supported" module. Always returns ENOSYS.

mu_auth_system_module Variable

This module is always registered even if libmuauth is not linked. It performs usual authentication using system user database (/etc/password et al.)

mu_auth_generic_module Variable

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 from passwd member of its key argument. Then it compares the obtained hash with the passwd member itself and returns 1 if both strings match.

mu_auth_pam_module Variable

Implements PAM authentication. Both authorization handlers are mu_auth_nosupport().

mu_auth_sql_module Variable

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 and sql_db. The SQL queries for retrieving user information from global variables sql_getpwnam_query and sql_getpwuid_query. The variable sql_getpass_query keeps the query used for retrieving user's password. See auth, for information on command line options used to set these variables.

mu_auth_virtual_module Variable

Implements mu_get_auth_by_name method using virtual mail domains. Neither mu_get_auth_by_uid nor mu_authenticate is implemented. This module must be used together with generic module.