【发布时间】:2016-11-24 10:18:57
【问题描述】:
我们已按照此链接中的 answer2 步骤操作,它不适用于 Solr Cloud 6.0.3 环境。
How to set Apache solr admin password
但它在普通的主/从中工作正常。
【问题讨论】:
标签: authentication solr solrcloud
我们已按照此链接中的 answer2 步骤操作,它不适用于 Solr Cloud 6.0.3 环境。
How to set Apache solr admin password
但它在普通的主/从中工作正常。
【问题讨论】:
标签: authentication solr solrcloud
在 SolrCloud 模式下,您应该使用内置的Authentication and Authorization support。
您可以通过将security.json 文件上传到您的 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"}
}}
有several different authentication plugins available - 示例来自 BasicAuthentication 模块。
【讨论】: