Class Passwd_Driver_ldap

Description

The LDAP class attempts to change a user's password stored in an LDAP directory service.

$Horde: passwd/lib/Driver/ldap.php,v 1.41.2.13 2009/11/09 13:31:12 jan Exp $

Copyright 2000-2009 The Horde Project (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.

Located in /lib/Driver/ldap.php (line 19)

Passwd_Driver
   |
   --Passwd_Driver_ldap
Direct descendents
Class Description
 class Passwd_Driver_smbldap The LDAP class attempts to change a user's LDAP password and Samba password stored in an LDAP directory service.
Variable Summary
 resource $_ds
 string $_userdn
Method Summary
 Passwd_Driver_ldap Passwd_Driver_ldap ([array $params = array()])
 boolean changePassword (string $username, string $old_password, string $new_password)
 mixed _bind ([string $userdn = ''], [string $password = ''])
 boolean _connect (string $userdn, string $oldpassword)
 string _lookupdn (string $user, string $passw)
Variables
resource $_ds = false (line 26)

LDAP connection handle.

string $_userdn (line 33)

The user's DN.

Inherited Variables

Inherited from Passwd_Driver

Passwd_Driver::$_errorstr
Passwd_Driver::$_params
Methods
Constructor Passwd_Driver_ldap (line 40)

Constructs a new Passwd_Driver_ldap object.

Passwd_Driver_ldap Passwd_Driver_ldap ([array $params = array()])
  • array $params: A hash containing connection parameters.
changePassword (line 140)

Changes the user's password.

  • return: True or PEAR_Error based on success of the change.
boolean changePassword (string $username, string $old_password, string $new_password)
  • string $username: The user for which to change the password.
  • string $old_password: The old (current) user password.
  • string $new_password: The new user password to set.

Redefinition of:
Passwd_Driver::changePassword()
Change the user's password.

Redefined in descendants as:
_bind (line 115)

Bind (or re-bind) to an LDAP server with the given credentials.

  • return: True on success; PEAR_Error on error
mixed _bind ([string $userdn = ''], [string $password = ''])
  • string $userdn: Bind DN
  • string $password: Bind password
_connect (line 74)

Does an LDAP connect and binds as the guest user or as the optional userdn.

  • return: True or False based on success of connect and bind.
boolean _connect (string $userdn, string $oldpassword)
  • string $userdn: The dn to use when binding non-anonymously.
  • string $oldpassword: The password for $userdn.
_lookupdn (line 239)

Looks up and returns the user's dn.

  • return: The ldap dn for the user.
string _lookupdn (string $user, string $passw)
  • string $user: The username of the user.
  • string $passw: The password of the user.

Inherited Methods

Inherited From Passwd_Driver

 Passwd_Driver::Passwd_Driver()
 Passwd_Driver::changePassword()
 Passwd_Driver::comparePasswords()
 Passwd_Driver::encryptPassword()
 Passwd_Driver::factory()

Documentation generated on Sun, 30 Jan 2011 05:36:08 +0000 by phpDocumentor 1.4.3