lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oakley, Craig (NIH/NLM/NCBI) [C]" <>
Subject RE: post.jar with security.json
Date Tue, 29 Dec 2015 18:14:18 GMT
I do have authorization and authentication setup in security.json: the question is how to pass
the login and password into post.jar and/or into solr-5.4.0/bin/post -- it does not seem to
like the user:pswd@host:8983/solr/corename/update syntax from SOLR-5960: when I try that,
it complains "SimplePostTool: FATAL: Connection error (is Solr running at http://user:pswd@hostname:8983/solr/five4a/update
?): Connection refused", and nothing shows up in solr.log (although
I do set to check for 401 errors, etc).

FYI, I get a 404 from the link you sited: perhaps I don't have access, or perhaps you meant (although
that doesn't mention post.jar)

-----Original Message-----
From: [] 
Sent: Tuesday, December 29, 2015 12:54 PM
Subject: Re: post.jar with security.json

Hi Craig,

To pass the username and password, you'll want to enable authorization and authentication
in security.json as is mentioned in this blog post in step 1 of "Enabling Basic Authentication".

Is this what you're looking for?


Esther Quansah

> Le 29 déc. 2015 à 12:24, Oakley, Craig (NIH/NLM/NCBI) [C] <>
a écrit :
> Or to put it another way, how does one get security.json to work with SOLR-5960?
> Has anyone any suggestions?
> -----Original Message-----
> From: Oakley, Craig (NIH/NLM/NCBI) [C] 
> Sent: Thursday, December 24, 2015 2:12 PM
> To: '' <>
> Subject: post.jar with security.json
> In the old jetty-based implementation of Basic Authentication, one could use post.jar
by running something like
> java -Durl="http://user:pswd@host:8983/solr/corename/update" -Dtype=application/xml -jar
post.jar example.xml
> By what mechanism does one pass in the user name and password to post.jar (or, I suppose
more likely, to solr-5.4.0/bin/post) when using security.json?
> Thanks
View raw message