we have followed answer2 steps in this link, it is not working for Solr Cloud 6.0.3 environment.
How to set Apache solr admin password
But it is working fine in normal Master/Slave.
In SolrCloud mode you should use the built-in Authentication and Authorization support.
You enable it by uploading a security.json
file to your Zookeeper ensemble:
{
"authentication":{
"blockUnknown": true,
"class":"solr.BasicAuthPlugin",
"credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="}
},
"authorization":{
"class":"solr.RuleBasedAuthorizationPlugin",
"permissions":[{"name":"security-edit",
"role":"admin"}],
"user-role":{"solr":"admin"}
}}
There are several different authentication plugins available - the example is from the BasicAuthentication module.