Overview

Packages

  • None
  • Passwd

Classes

  • Passwd
  • Passwd_Driver
  • Passwd_Driver_Adsi
  • Passwd_Driver_Composite
  • Passwd_Driver_Expect
  • Passwd_Driver_Expectpecl
  • Passwd_Driver_Horde
  • Passwd_Driver_Http
  • Passwd_Driver_Kolab
  • Passwd_Driver_Ldap
  • Passwd_Driver_Pine
  • Passwd_Driver_Poppassd
  • Passwd_Driver_Procopen
  • Passwd_Driver_Pspasswd
  • Passwd_Driver_Servuftp
  • Passwd_Driver_Smbldap
  • Passwd_Driver_Smbpasswd
  • Passwd_Driver_Soap
  • Passwd_Driver_Sql
  • Passwd_Driver_Vmailmgr
  • Passwd_Driver_Vpopmail
  • Passwd_Exception
  • Passwd_Factory_Driver
  • Overview
  • Package
  • Class
  • Tree

Class Passwd_Driver_Sql

The SQL driver attempts to change a user's password stored in an SQL database and implements the Passwd_Driver API.

Copyright 2000-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.php.

Passwd_Driver
Extended by Passwd_Driver_Sql
Package: Passwd
Author: Mike Cochrane mike@graftonhall.co.nz
Author: Ilya Krel mail@krel.org
Author: Tjeerd van der Zee admin@xar.nl
Author: Mattias Webjörn Eriksson mattias@webjorn.org
Author: Eric Jon Rostetter eric.rostetter@physics.utexas.edu
Author: Ralf Lang lang@b1-systems.de (H4 conversion)
Located at Driver/Sql.php
Methods summary
public
# __construct( array $params = array() )

Constructor.

Constructor.

Parameters

$params
Additional parameters needed: <pre><span class="php-quote">'db'</span> - (Horde_Db_Adapter) A DB Adapter object. optional: <span class="php-quote">'table'</span> - (string) The name of the user database table <span class="php-quote">'encryption'</span> - (string) The encryption type <span class="php-quote">'user_col'</span> - (string) The table column <span class="php-keyword1">for</span> user name <span class="php-quote">'pass_col'</span> - (string) The table column <span class="php-keyword1">for</span> password <span class="php-quote">'show_encryption'</span> - (boolean) Prepend the encryption type to the password? <span class="php-quote">'query_lookup'</span> - (string) Should we <span class="php-keyword1">use</span> a custom query <span class="php-keyword1">for</span> lookup? <span class="php-quote">'query_modify'</span> - (string) Should we <span class="php-keyword1">use</span> a custom query <span class="php-keyword1">for</span> changing?</pre>

Throws

InvalidArgumentException

Overrides

Passwd_Driver::__construct()
public
# changePassword( string $username, string $old_password, string $new_password )

Changes the user's password.

Changes the user's password.

Parameters

$username
The user for which to change the password.
$old_password
The old (current) user password.
$new_password
The new user password to set.

Throws

Passwd_Exception
API documentation generated by ApiGen