lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Davis (JIRA)" <>
Subject [jira] [Commented] (SOLR-8048) bin/solr script should accept user name and password for basicauth
Date Thu, 17 Mar 2016 02:14:33 GMT


Daniel Davis commented on SOLR-8048:

So, in looking at SolrCLI, I don't see how SOLR-8053 helps much.   SolrCLI usually does not
create requests but rather  goes directly through the JSON API using routines such as {{getJson()}}
and {{postJsonToSolr()}}.    As I thought before, the right place to add basic auth seems
to be in {{getHttpClient()}}.

However, I do also see some places where for cloud tools, a {{CloudSolrClient}} is created.
  There, something else is needed.

Finally, I had somehow expected that {{getCommonToolOptions()}} would do just that, and I
would be able there to add options.   I see now that would be a mistake - the ExampleTool
does not need an authentication option, because it will not be creating a cloud that uses

For now, I will make a start by making sure that {{CreateTool()}} works properly, with a manually
added Option for that tool.   I will therefore also be handling {{CreateCollectionTool()}}.
  Once that works, I'll have to slowly work forward to other tools, and I will need help to
know that I've got all of them that need this option.

How the username and password are passed in is less important to me right now - I can iterate
on that once I have a basic mechanism.

> bin/solr script should accept user name and password for basicauth
> ------------------------------------------------------------------
>                 Key: SOLR-8048
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: scripts and tools
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>              Labels: authentication, security
>             Fix For: 5.5
> It should be possible to pass the user name as a param say {{-user solr:SolrRocks}} or
alternately it should prompt for user name and password

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message