Issue in Authentication in solr 7.3

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Issue in Authentication in solr 7.3

Prashant Thorat
*security.json*

{
"authentication":{
   "class":"solr.BasicAuthPlugin",
   "blockUnknown": true,
   "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0=
Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="}
},
"authorization":{
   "class":"solr.RuleBasedAuthorizationPlugin",
   "permissions":[{
"name": "all",
"role": "admin"
},
{
"name": "security-edit",
"role": "admin"
},
{
"name": "read",
"role": "admin"
},
{
"name": "update",
"role": "admin"
},
{
"name": "collection-admin-read",
"role": "admin"
},
{
"name": "config-read",
"role": "admin"
}],
   "user-role":{"solr":"admin"}
}}

And uploaded to zookeper

d /opt/solr-7.3.0/server/scripts/cloud-scripts
sudo ./zkcli.sh -zkhost 192.168.1.120:2181,192.168.1.100:2181,
192.168.1.105:2181 -cmd putfile /security.json
/home/pc2/Desktop/security.json

Authentication is enabled by but it looks like inter node communication
issue.
3 nodes are running and in * logging it shows error*


*<body><h2>HTTP ERROR 401</h2> <p>Problem accessing
/solr/locationList_shard1_replica_n4/update. Reason: <pre> Unauthorized
request, Response code: 401</pre></p> </body> </html>*