Tariqa  3.0
 All Data Structures Namespaces Files Functions Variables Enumerations
EC_LDAP Class Reference
Inheritance diagram for EC_LDAP:
mLDAP

Public Member Functions

 __construct ()
 search ($filter, $required_attributes=false)
 connect ($username=false, $password=false)

Static Public Attributes

static $ldap_attributes

Constructor & Destructor Documentation

Construct a mLdap Object, using the EC Settings


Member Function Documentation

connect ( username = false,
password = false 
)

Connect to the server

Parameters:
string$usernameThe username to use to connect to the LDAP server, or false for anonymous connection
string$passwordThe password to use to connect to the LDAP server, or false for anonymous connection
Returns:
boolean True on success, false otherwise

Reimplemented from mLDAP.

search ( filter,
required_attributes = false 
)

Quick search in the directory

Parameters:
string$filterthe LDAP filter. ie: (|(uid=MY_USER_ID)(cn=MY_NAME*))
false | array$required_attributesIf false, retrieves default attributes, otherwise retrieve only specific attributes (the list should only contain real attributes names, as defined in the array values of $this->ldap_attributes )
Returns:
array

Field Documentation

$ldap_attributes [static]
Initial value:
 array( 'user_id'=>'uid',
                        'user_group'=>'cudgroup',
                        'user_class'=>'objectclass',
                        'title'=>'title', 'first_name'=>'givenname', 'last_name'=>'sn', 'display_name'=>'cn',
                        'email'=>'mail', 'phone'=>'telephonenumber', 'country'=>'c',
                        'organisation'=>'sourceorganisation','directorate_general'=>'dg','directorate'=>'dir','unit'=>'div',
                        'department'=>'departmentnumber', 'manager_id'=>'manager',
                        'building'=>'building','floor'=>'floor','office'=>'room',
                        'address'=>'physicaldeliveryofficename',
                        'dn'=>'dn'
                )

List of existing attributes to fetch. The key in the array are used as aliases to the attributes by the EC_User class


The documentation for this class was generated from the following file: