The Auth_sql class provides a SQL implementation of the Horde authentication system.
Required parameters:
'phptype' The database type (ie. 'pgsql', 'mysql', etc.).
Optional parameters:
'encryption' The encryption to use to store the password in the table (e.g. plain, crypt, md5-hex, md5-base64, smd5, sha, ssha, aprmd5). DEFAULT: 'md5-hex' 'show_encryption' Whether or not to prepend the encryption in the password field. DEFAULT: 'false' 'password_field' The name of the password field in the auth table. DEFAULT: 'user_pass' 'table' The name of the SQL table to use in 'database'. DEFAULT: 'horde_users' 'username_field' The name of the username field in the auth table. DEFAULT: 'user_uid' 'soft_expiration_field' The name of the field containing a date after which the system will request the user change his or her password. DEFAULT: none 'hard_expiration_field' The name of the field containing a date after which the account is no longer valid and the user will not be able to log in at all. DEFAULT: none
Required by some database implementations:
'hostspec' The hostname of the database server. 'protocol' The communication protocol ('tcp', 'unix', etc.). 'database' The name of the database. 'username' The username with which to connect to the database. 'password' The password associated with 'username'. 'options' Additional options to pass to the database. 'port' The port on which to connect to the database. 'tty' The TTY on which to connect to the database.
Optional values when using separate read and write servers, for example in replication settings:
'splitread' Boolean, whether to implement the separation or not. 'read' Array containing the parameters which are different for the read database connection, currently supported only 'hostspec' and 'port' parameters.
The table structure for the Auth system is in scripts/sql/horde_users.sql.
$Horde: framework/Auth/Auth/sql.php,v 1.69.10.25 2009/02/25 05:35:41 chuck Exp $
Copyright 1999-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://opensource.org/licenses/lgpl-license.php.
Located in /Auth/Auth/sql.php (line 63)
Auth | --Auth_sql
Class | Description |
---|---|
![]() |
The Auth_customsql class provides a sql implementation of the Horde authentication system with the possibility to set custom-made queries. |
![]() |
The Auth_cyrsql class provides a SQL implementation of the Horde authentication system for the Cyrus IMAP server. Most of the functionality is the same as for the SQL class; only what is different overrides the parent class implementations. |
An array of capabilities, so that the driver can report which operations it supports and which it doesn't.
Boolean indicating whether or not we're connected to the SQL server.
Handle for the current database connection.
Handle for the current database connection, used for writing. Defaults to the same handle as $_db if a separate write database is not required.
Inherited from Auth
Auth::$_authCredentials
Auth::$_params
Constructs a new SQL authentication object.
Add a set of authentication credentials.
Checks if a userId exists in the system.
List all users in the system.
Delete a set of authentication credentials.
Reset a user's password. Used for example when the user does not remember the existing password.
Update a set of authentication credentials.
Inherited From Auth
Auth::addHook()
Auth::addLogoutParameters()
Auth::addUser()
Auth::authenticate()
Auth::clearAuth()
Auth::exists()
Auth::factory()
Auth::genRandomPassword()
Auth::getAuth()
Auth::getAuthDomain()
Auth::getBareAuth()
Auth::getCredential()
Auth::getCryptedPassword()
Auth::getDriver()
Auth::getLoginScreen()
Auth::getLogoutReason()
Auth::getLogoutReasonString()
Auth::getParam()
Auth::getProvider()
Auth::getSalt()
Auth::hasCapability()
Auth::isAdmin()
Auth::isAuthenticated()
Auth::isPasswordChangeRequested()
Auth::listUsers()
Auth::readSessionData()
Auth::removeHook()
Auth::removeUser()
Auth::removeUserData()
Auth::setAuth()
Auth::setCredential()
Auth::singleton()
Auth::transparent()
Auth::updateUser()
Auth::_authenticate()
Auth::_isAdmin()
Documentation generated on Sun, 30 Jan 2011 05:21:59 +0000 by phpDocumentor 1.4.3