Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13600

Basic Authentication for read role is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 8.1.1
    • None
    • Authorization
    • DEV environment

    Description

      Hello Team,

      I have upgraded the SOLR instance from 7.x to 8.1.1 and my READ role users are not able to search results. 

      Upon trying to access below URL, getting the error:

      http://localhost:8984/solr/testcore/select?q=%3A

      HTTP ERROR 403

      Problem accessing /solr/xcelerate/select. Reason:

      Unauthorized request, Response code: 403

       

      Below is the content of security.json file.

       

      {
      "authentication":{
      "blockUnknown":true,
      "class":"solr.BasicAuthPlugin",
      "credentials":

      { "solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c=", "searchuser":"hzx9wjm6baNqx08LpfevT8dNaojdMqIJMAF8cXanL1o= CLDitkrBjs2FbqhOZN9Ey9Qc+5xcOJHfQTbPMC2p1eU=", "solradmin":"ovgoJKFnFo43fgt5Pd7bfXBwq3+vfCO3uZXVRUi7H0Q= gKRUTDGkg5RtTIgXDiKFkefuaelAWU18KlRTAv4LfFQ="}

      ,
      "realm":"My Solr users",
      "forwardCredentials":false,
      "":{"v":0}},
      "authorization":{
      "class":"solr.RuleBasedAuthorizationPlugin",
      "permissions":[

      { "name":"all", "role":"admin", "index":1}

      ,

      { "name":"read", "role":"search", "index":2}

      ],
      "user-role":

      { "solr":"admin", "searchuser":["read"], "solradmin":["admin"]}

      ,
      "":{"v":0}}}

      Attachments

        Activity

          People

            Unassigned Unassigned
            nasati Nitin Asati
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: