protected function configureValueResolver(BaseValueResolver $valueResolver, $dn = null)
    {
        if ($this->connection) {
            $valueResolver->setLdapConnection($this->connection);
        }
        if (!is_null($dn)) {
            $valueResolver->setDn($dn);
        }
    }