* Bind the system user to the LDAP connection using the given credentials
* otherwise anonymous access is attempted.
*
- * @param $connection
+ * @param resource $connection
*
* @throws LdapException
*/
}
$userGroups = $this->groupFilter($user);
+
return $this->getGroupsRecursive($userGroups, []);
}