hello Marisol, If it is login/password and not kerberos ticket:
curl -u username:password -X POST --header "Content-Type:application/octet-stream" --data-binary @configset.zip " https://solrurl:8983/solr/admin/configs?action=UPLOAD&name=configName" If you only give the user, curl should ask you to type the password. I hope this helps. Kind Regards, Alejandro Arrieta On Tue, May 23, 2023 at 6:30 AM Marisol Redondo < [email protected]> wrote: > Hi, > > We have enable authentication in the solr installation, and I can't upload > a config set to zookeeper to use in a collection using the API, I'm getting > a fobidden error, as I need to pass the user and password. > The command I'm using to upload is: > curl -X POST --header "Content-Type:application/octet-stream" > --data-binary @configset.zip " > https://solrurl:8983/solr/admin/configs?action=UPLOAD&name=configName" > > Is there any way of specifying the user and password when doing an API call > to upload the collection? > > Thanks >
