[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Auth/ -> ldap.php (sommaire)

(pas de description)

Poids: 543 lignes (20 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Auth_ldap:: (10 méthodes):
  Auth_ldap()
  _setParams()
  _connect()
  _findDN()
  _lookupShadow()
  _authenticate()
  addUser()
  removeUser()
  updateUser()
  listUsers()


Classe: Auth_ldap  - X-Ref

The Auth_ldap class provides an LDAP implementation of the Horde
authentication system.

Required parameters:<pre>
'basedn'       The base DN for the LDAP server.
'hostspec'     The hostname of the LDAP server.
'uid'          The username search key.
'filter'       The LDAP formatted search filter to search for users. This
setting overrides the 'objectclass' method below.
'objectclass'  The objectclass filter used to search for users. Can be a
single objectclass or an array.</pre>

Optional parameters:<pre>
'binddn'       The DN used to bind to the LDAP server
'password'     The password used to bind to the LDAP server
'version'      The version of the LDAP protocol to use.
DEFAULT: NONE (system default will be used)</pre>


$Horde: framework/Auth/Auth/ldap.php,v 1.47.10.19 2006/08/14 02:48:48 chuck Exp $

Copyright 1999-2006 Jon Parise <jon@horde.org>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Auth_ldap($params = array()   X-Ref
Constructs a new LDAP authentication object.

param: array $params  A hash containing connection parameters.

_setParams($params)   X-Ref
Set configuration parameters

param: array $params  A hash containing connection parameters.

_connect()   X-Ref
Does an ldap connect and binds as the guest user or as the optional dn.

return: boolean  True or False based on success of connect and bind.

_findDN($userId)   X-Ref
Find the user dn

param: string $userId       The userId to find.
return: string  The users full DN

_lookupShadow($dn)   X-Ref
Checks for shadowLastChange and shadowMin/Max support and returns their
values.  We will also check for pwdLastSet if Active Directory is
support is requested.  For this check to succeed we need to be bound
to the directory

param: string $dn     The dn of the user
return: array  array with keys being "shadowlastchange", "shadowmin"

_authenticate($userId, $credentials)   X-Ref
Find out if the given set of login credentials are valid.

param: string $userId       The userId to check.
param: array  $credentials  An array of login credentials.
return: boolean  True on success or a PEAR_Error object on failure.

addUser($userId, $credentials)   X-Ref
Add a set of authentication credentials.

param: string $userId      The userId to add.
param: array $credentials  The credentials to be set.
return: mixed  True on success or a PEAR_Error object on failure.

removeUser($userId)   X-Ref
Remove a set of authentication credentials.

param: string $userId      The userId to add.
return: mixed  True on success or a PEAR_Error object on failure.

updateUser($oldID, $newID, $credentials)   X-Ref
Update a set of authentication credentials.

param: string $oldID       The old userId.
param: string $newID       The new userId.
param: array $credentials  The new credentials
return: mixed  True on success or a PEAR_Error object on failure.

listUsers()   X-Ref
List Users

return: array  List of Users



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7