Small correction in the user-name. It is solr-admin everywhere. Hi Solr Users,
I have enabled Solr basic authentication as shown in Solr documentations. I have changed username from solr to solr-admin as follow { "authentication":{ "blockUnknown": true, "class":"solr.BasicAuthPlugin", "credentials":{"solr-admin":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="} }, "authorization":{ "class":"solr.RuleBasedAuthorizationPlugin", "permissions":[{"name":"security-edit", "role":"admin"}], "user-role":{"solr-admin":"admin"} }} I am able to login to the page using the credentials mroads-solr-admin:SolrRocks. But, when I try to change the default password using the curl command as follows, curl --user solr-admin:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-user":{"solr-admin":"s2019"}}' I get the following error message, <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 403 Unauthorized request, Response code: 403</title> </head> <body><h2>HTTP ERROR 403</h2> <p>Problem accessing /solr/admin/authentication. Reason: <pre> Unauthorized request, Response code: 403</pre></p> </body> </html> Please help. *Thanks and Regards,* Salmaan Rashid Syed +91 8978353445 | www.panna.ai | 5550 Granite Pkwy, Suite #225, Plano TX-75024. Cyber Gateways, Hi-tech City, Hyderabad, Telangana, India. On Thu, Aug 1, 2019 at 1:48 PM Salmaan Rashid Syed < salmaan.ras...@mroads.com> wrote: > Hi Solr Users, > > I have enabled Solr basic authentication as shown in Solr documentations. > > I have changed username from solr to solr-admin as follow > > { > "authentication":{ > "blockUnknown": true, > "class":"solr.BasicAuthPlugin", > > "credentials":{"solr-admin":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= > Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="} > }, > "authorization":{ > "class":"solr.RuleBasedAuthorizationPlugin", > "permissions":[{"name":"security-edit", > "role":"admin"}], > "user-role":{"solr-admin":"admin"} > }} > > I am able to login to the page using the credentials > mroads-solr-admin:SolrRocks. > > But, when I try to change the default password using the curl command as > follows, > > curl --user mroads-solr-admin:SolrRocks > http://localhost:8983/solr/admin/authentication -H > 'Content-type:application/json' -d '{"set-user":{"mroads-solr":"Mroads@2019 > #"}}' > > > > I get the following error message, > > > <html> > > <head> > > <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> > > <title>Error 403 Unauthorized request, Response code: 403</title> > > </head> > > <body><h2>HTTP ERROR 403</h2> > > <p>Problem accessing /solr/admin/authentication. Reason: > > <pre> Unauthorized request, Response code: 403</pre></p> > > </body> > > </html> > > > Please help. > > > > *Thanks and Regards,* > Salmaan Rashid Syed > +91 8978353445 | www.panna.ai | > 5550 Granite Pkwy, Suite #225, Plano TX-75024. > Cyber Gateways, Hi-tech City, Hyderabad, Telangana, India. > >