Kevin Risden created SOLR-14321:
-----------------------------------

             Summary: SolrJ with Kerberos docs have removed 
HttpClientUtil.setConfigurer 
                 Key: SOLR-14321
                 URL: https://issues.apache.org/jira/browse/SOLR-14321
             Project: Solr
          Issue Type: Task
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 8.4, 8.3, 8.2, 8.1, 8.0, 7.7, 7.6, 7.5, 7.4, 7.3, 7.2, 
7.1, 7.0
            Reporter: Kevin Risden
            Assignee: Kevin Risden


https://lucene.apache.org/solr/guide/8_4/kerberos-authentication-plugin.html#using-solrj-with-a-kerberized-solr

{code:java}
HttpClientUtil.setConfigurer(new Krb5HttpClientConfigurer());
{code}

This was removed in Solr 7.0.0 with SOLR-4509 
(https://github.com/apache/lucene-solr/commit/ce172acb8fec6c3bbb18837a4d640da6c5aad649#diff-ab69354d287d536ce35357f6023bafceL104).

The replacement should be:

{code:java}
HttpClientUtil.setHttpClientBuilder(new Krb5HttpClientBuilder().getBuilder());
{code}

An example of this is: 
https://github.com/apache/ranger/blob/master/security-admin/src/main/java/org/apache/ranger/solr/SolrMgr.java#L114



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to