Tariqa SOAP
 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)

Data Fields

const EC_LDAP_SERVER = "your-ldap-server"
const EC_LDAP_SERVER_PORT = LDAP_PORT
const EC_LDAP_BASE_DN = "your-ldap-base-dn"

Static Public Attributes

static $ldap_attributes

Constructor & Destructor Documentation

Construct a mLdap Object, using the EC Settings


Member Function Documentation

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

const EC_LDAP_BASE_DN = "your-ldap-base-dn"

Base DN

const EC_LDAP_SERVER = "your-ldap-server"

Server Host

const EC_LDAP_SERVER_PORT = LDAP_PORT

Server Port


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