Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
solr [2018/02/14 11:20] – [Create a User and set password] admin | solr [2018/02/14 11:26] – admin |
---|
| |
====== Basic Auth ====== | ====== Basic Auth ====== |
| |
| <note>User **solr** – Password: **SolrRocks**</note> |
| |
Create file /var/solr/data/security.json and add the following content: | Create file /var/solr/data/security.json and add the following content: |
"blockUnknown":true, | "blockUnknown":true, |
"class":"solr.BasicAuthPlugin", | "class":"solr.BasicAuthPlugin", |
"credentials":{"solr":"DAM_SECRET_HASH_THING"}, | "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="}, |
"":{"v":0}}, | "":{"v":0}}, |
"authorization":{ | "authorization":{ |
</code> | </code> |
| |
| <note important>This is required to run **/opt/solr/bin/solr**-Command when BasicAuthPlugin is enabled</note> |
In /etc/default/solr.in.sh set the Following: | In /etc/default/solr.in.sh set the Following: |
| |
SOLR_AUTHENTICATION_OPTS="-Dbasicauth=MY_SOLR_USER:MY_PASSWORD" | SOLR_AUTHENTICATION_OPTS="-Dbasicauth=MY_SOLR_USER:MY_PASSWORD" |
</code> | </code> |
| |