我在Windows 10中以独立模式使用Solr 7.3.0,并启用了基本身份验证和基于角色的授权。我创建了2个用户,其中1个是admin,我要授予访问权限的另一个用户“ tom”仅查询数据或创建/更新数据。他不应该打开管理界面或对管理界面进行任何更改。以下是该设置已完成但不起作用的security.json。用户“ tom”能够登录到管理界面并进行更改,查询和读取所有核心数据。请帮我解决我做错的事情。
{
"authentication": {
"blockUnknown": true,
"class": "solr.BasicAuthPlugin",
"credentials": {
"solr": "IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c=",
"tom": "qiO9mRn2s1CJLanzz+dHaAyEisSvUM41Jd3mox+LKHM= Vh9irc/tc7eC/j3p9UFYITvlWup7vROaviAaWiSh0QA="
},
"": {
"v": 0
}
},
"authorization": {
"class": "solr.RuleBasedAuthorizationPlugin",
"permissions": [
{
"name": "security-edit",
"role": "admin",
"index": 1
},
{
"name": "collection-admin-read",
"role": "xz",
"index": 2
},
{
"name": "collection-admin-edit",
"role": "xz",
"index": 3
}
],
"user-role": {
"solr": "admin",
"tom": "xz"
},
"": {
"v": 0
}
}
}