[ Index ]
 

Code source de DokuWiki 2006-11-06

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

title

Body

[fermer]

/inc/auth/ -> ldap.class.php (sommaire)

(pas de description)

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

Définit 1 class

auth_ldap:: (5 méthodes):
  auth_ldap()
  checkPass()
  getUserData()
  _makeFilter()
  _openLDAP()


Classe: auth_ldap  - X-Ref

LDAP authentication backend

auth_ldap()   X-Ref
Constructor


checkPass($user,$pass)   X-Ref
Check user+password

Checks if the given user exists and the given
plaintext password is correct by trying to bind
to the LDAP server

author: Andreas Gohr <andi@splitbrain.org>
return: bool

getUserData($user)   X-Ref
Return user info

Returns info about the given user needs to contain
at least these fields:

name string  full name of the user
mail string  email addres of the user
grps array   list of groups the user is in

This LDAP specific function returns the following
addional fields:

dn   string  distinguished name (DN)
uid  string  Posix User ID

author: Andreas Gohr <andi@splitbrain.org>
author: Trouble
author: Dan Allen <dan.j.allen@gmail.com>
return: array containing user data or false

_makeFilter($filter, $placeholders)   X-Ref
Make LDAP filter strings.

Used by auth_getUserData to make the filter
strings for grouptree and groupfilter

filter      string  ldap search filter with placeholders
placeholders array   array with the placeholders

author: Troels Liebe Bentsen <tlb@rapanden.dk>
return: string

_openLDAP()   X-Ref
Opens a connection to the configured LDAP server and sets the wanted
option on the connection

author: Andreas Gohr <andi@splitbrain.org>



Généré le : Tue Apr 3 20:47:31 2007 par Balluche grâce à PHPXref 0.7