sc_ldap_search( $filter = 'all', $attributes = array() )

This macro is used to perform searches in the LDAP.

 

Parameter Description
$filter 'all' or 'member':
'all' returns all information that the logged user can see.
'member' returns the information about that member
$attributes Array of LDAP filter options.

 

Ex:

$result = sc_ldap_search($filter, array('mail', 'displayname'));