. */ namespace SP\Providers\Auth\Ldap; /** * Interface LdapInterface * * @package Auth\Ldap */ interface LdapConnectionInterface { /** * Comprobar la conexión al servidor de LDAP. */ public function checkConnection(); /** * Comprobar si los parámetros necesarios de LDAP están establecidos. * * @return bool */ public function checkParams(): bool; /** * @return resource * @throws LdapException */ public function connectAndBind(); /** * Realizar la conexión al servidor de LDAP. * * @return bool * @throws LdapException */ public function connect(): bool; /** * @param string|null $bindDn * @param string|null $bindPass * * @return bool */ public function bind(?string $bindDn = null, ?string $bindPass = null): bool; /** * @return bool */ public function unbind(): bool; /** * @return LdapParams */ public function getLdapParams(): LdapParams; /** * @return string */ public function getServer(): string; /** * @param string $server * * @return LdapConnectionInterface */ public function setServer(string $server): LdapConnectionInterface; }