solr has a basic authentication module. the description of how to generate the necessary hash + salt string is very hazy. there is this:
https://github.com/ansgarwiechers/solrpasswordhash
project with java code extracted from the solr source .... and then there is this: