protected function isUnicodePwdHackNeeded()
    {
        if (!(isset($this->connection) && $this->connection->getConfig()->getLdapType() == LdapConnection::TYPE_AD && isset($this->schema))) {
            return false;
        }

        return $this->schema->hasNamesMappedToAttribute('unicodePwd');
    }