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

Macro 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 aobut that member
$attributes Array of LDAP filter options.

Ex:

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