. */ namespace SP\Domain\Auth; use SP\Providers\Auth\Ldap\LdapException; use SP\Providers\Auth\Ldap\LdapParams; /** * Class LdapCheckService * * @package SP\Domain\Import\Services */ interface LdapCheckServiceInterface { /** * @param LdapParams $ldapParams * * @throws LdapException */ public function checkConnection(LdapParams $ldapParams): void; /** * @throws \SP\Providers\Auth\Ldap\LdapException */ public function getObjects(bool $includeGroups = true): array; /** * Obtener los datos de una búsqueda de LDAP de un atributo * * @param array $data * @param string[] $attributes * * @return array */ public function ldapResultsMapper(array $data, array $attributes = ['dn']): array; /** * @throws \SP\Providers\Auth\Ldap\LdapException */ public function getObjectsByFilter(string $filter): array; }