On Wed, 2015-11-18 at 13:17 -0700, Shawn Heisey wrote: > Recent versions of Solr have added basic authentication. The Solr > client functionality uses HttpClient. > > The start script included with Solr has some additional functionality > for manipulating the running server, and the class that this script > calls uses HttpClient to talk to Solr. We have an issue to add the > ability to provide user/password to this script: > > https://issues.apache.org/jira/browse/SOLR-8048 > > In the meantime, I am hoping that there is a way that Solr users can > provide credentials to HttpClient via another means, like system > properties or environment variables. Is there anything like that? >
Shawn One can always use a custom credentials provider instead of the default ones. http://hc.apache.org/httpcomponents-client-4.5.x/httpclient/xref/org/apache/http/impl/client/BasicCredentialsProvider.html http://hc.apache.org/httpcomponents-client-4.5.x/httpclient/xref/org/apache/http/impl/client/SystemDefaultCredentialsProvider.html Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org