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 | $username | The username to use to connect to the LDAP server, or false for anonymous connection |
string | $password | The 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 | $filter | the LDAP filter. ie: (|(uid=MY_USER_ID)(cn=MY_NAME*)) |
false | array | $required_attributes | If 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: