LDAPService::getGroups
Return all AD groups in configured search locations, including all nested groups.
Uses groups_search_locations if defined, otherwise falls back to NULL, which tells LDAPGateway to use the default baseDn defined in the connection.
Signature
public function getGroups([boolean
$cached = true,
[array
$attributes = ,
[string
$indexBy = 'dn']]] )
Parameters
$cached
— boolean- Cache the results from AD, so that subsequent calls are faster. Enabled by default.
$attributes
— array- List of specific AD attributes to return. Empty array means return everything.
$indexBy
— string- Attribute to use as an index.
Returns
- array