Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-14321: SolrJ with Kerberos docs update invalid HttpClientUtil.setConfigurer (#305)

Kevin Risdena65f3bf831d3
diff --git a/solr/solr-ref-guide/src/kerberos-authentication-plugin.adoc b/solr/solr-ref-guide/src/kerberos-authentication-plugin.adoc
index a1164192b82..0370de917f4 100644
--- a/solr/solr-ref-guide/src/kerberos-authentication-plugin.adoc
+++ b/solr/solr-ref-guide/src/kerberos-authentication-plugin.adoc
@@ -463,7 +463,7 @@ To use Kerberos authentication in a SolrJ application, you need the following tw
[source,java]
----
System.setProperty("java.security.auth.login.config", "/home/foo/jaas-client.conf");
-HttpClientUtil.setConfigurer(new Krb5HttpClientConfigurer());
+HttpClientUtil.setHttpClientBuilder(new Krb5HttpClientBuilder().getBuilder());
----
You need to specify a Kerberos service principal for the client and a corresponding keytab in the JAAS client configuration file above.