Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Basic Authentication is not working in Apache solr 8

Tags:

solr

solr8

I working on the Apache solr (version 8) authentication, using basic authentication API. Using below security.json and placed in the $Solr_Home(/opt/solr/server). But still i am not getting authentication popup when I open the solr site

  {
    "authentication":{
       "blockUnknown": true,
       "class":"solr.BasicAuthPlugin",
       "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVB
AaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="},
       "realm":"My Solr users",
       "forwardCredentials": false
      },

 "authorization":{
     "class":"solr.RuleBasedAuthorizationPlugin",
     "permissions":[{"name":"security-edit","role":"admin"}],
      "user-role":{"solr":"admin"}
       }}
like image 893
Girija S Avatar asked Sep 05 '25 03:09

Girija S


1 Answers

You should place the file in /var/solr/data/ or where ever solr.xml is. and make sure the file name is security.json. Otherwise, Apache Solr won't recognize the file.

like image 83
ashkar Avatar answered Sep 07 '25 23:09

ashkar