Class Horde_Auth_Cyrsql
The Horde_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.
The table structure for the auth system is as follows:
CREATE TABLE accountuser ( username VARCHAR(255) BINARY NOT NULL DEFAULT '', password VARCHAR(32) BINARY NOT NULL DEFAULT '', prefix VARCHAR(50) NOT NULL DEFAULT '', domain_name VARCHAR(255) NOT NULL DEFAULT '', UNIQUE KEY username (username) ); CREATE TABLE adminuser ( username VARCHAR(50) BINARY NOT NULL DEFAULT '', password VARCHAR(50) BINARY NOT NULL DEFAULT '', type INT(11) NOT NULL DEFAULT '0', SID VARCHAR(255) NOT NULL DEFAULT '', home VARCHAR(255) NOT NULL DEFAULT '', PRIMARY KEY (username) ); CREATE TABLE alias ( alias VARCHAR(255) NOT NULL DEFAULT '', dest LONGTEXT, username VARCHAR(50) NOT NULL DEFAULT '', status INT(11) NOT NULL DEFAULT '1', PRIMARY KEY (alias) ); CREATE TABLE domain ( domain_name VARCHAR(255) NOT NULL DEFAULT '', prefix VARCHAR(50) NOT NULL DEFAULT '', maxaccounts INT(11) NOT NULL DEFAULT '20', quota INT(10) NOT NULL DEFAULT '20000', transport VARCHAR(255) NOT NULL DEFAULT 'cyrus', freenames ENUM('YES','NO') NOT NULL DEFAULT 'NO', freeaddress ENUM('YES','NO') NOT NULL DEFAULT 'NO', PRIMARY KEY (domain_name), UNIQUE KEY prefix (prefix) ); CREATE TABLE domainadmin ( domain_name VARCHAR(255) NOT NULL DEFAULT '', adminuser VARCHAR(255) NOT NULL DEFAULT '' ); CREATE TABLE search ( search_id VARCHAR(255) NOT NULL DEFAULT '', search_sql TEXT NOT NULL, perpage INT(11) NOT NULL DEFAULT '0', timestamp TIMESTAMP(14) NOT NULL, PRIMARY KEY (search_id), KEY search_id (search_id) ); CREATE TABLE virtual ( alias VARCHAR(255) NOT NULL DEFAULT '', dest LONGTEXT, username VARCHAR(50) NOT NULL DEFAULT '', status INT(11) NOT NULL DEFAULT '1', KEY alias (alias) ); CREATE TABLE log ( id INT(11) NOT NULL AUTO_INCREMENT, msg TEXT NOT NULL, user VARCHAR(255) NOT NULL DEFAULT '', host VARCHAR(255) NOT NULL DEFAULT '', time DATETIME NOT NULL DEFAULT '2000-00-00 00:00:00', pid VARCHAR(255) NOT NULL DEFAULT '', PRIMARY KEY (id) );
Copyright 2002-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, http://www.horde.org/licenses/lgpl21
- Horde_Auth_Base
- Horde_Auth_Sql
- Horde_Auth_Cyrsql
Package: Auth
Category: Horde
License: LGPL-2.1
Author: Ilya Krel mail@krel.org
Author: Jan Schneider jan@horde.org
Located at Horde/Auth/Cyrsql.php
Category: Horde
License: LGPL-2.1
Author: Ilya Krel mail@krel.org
Author: Jan Schneider jan@horde.org
Located at Horde/Auth/Cyrsql.php
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
#
updateUser( string $oldID, string $newID, array $credentials )
Update a set of authentication credentials. |
exists(),
resetPassword()
|
authenticate(),
getCredential(),
getError(),
getParam(),
hasCapability(),
isLocked(),
lockUser(),
setCredential(),
setError(),
transparent(),
unlockUser(),
validateAuth()
|