Build the docker image,
docker build -t solr-auth .
Run an instance,
docker run --rm -p 8983:8983 --name solr-test solr-auth:latest
See solr started at http://localhost:8983
Add a new user,
curl --user solr:SolrRocks http://localhost:8984/solr/admin/authentication -H 'Content-type:application/json' -d '{"set-user": {"tom":"TomIsCool", "harry":"HarrysSecret"}}'
Default admin user:pass is solr:SolrRocks
.
Create new users/manage auth following official docs.