if you're using Jetty you can use the standard realms mechanism for Basic
Auth, and it works the same on Windows or UNIX. There's plenty of docs on
the Jetty site about getting this working, although it does vary somewhat
depending on the version of Jetty you're running (N.B. I would suggest
using Jetty 9, and not 8, as 8 is missing some key authentication classes).
If, when you execute a search query to your Solr instance you get a
username and password popup, then Jetty's auth is setup. If you don't then
something's wrong in the Jetty config.

it's worth noting that if you're doing distributed searches Basic Auth on
its own will not work for you. This is because Solr sends distributed
requests to remote instances on behalf of the user, and it has no knowledge
of the web container's auth mechanics. We got 'round this by customizing
Solr to receive credentials and use them for authentication to remote
instances - SOLR-1861 is an old implementation for a previous release, and
there has been some significant refactoring of SearchHandler since then,
but the concept works well for distributed queries.

Thanks,
Peter



On Wed, Jul 22, 2015 at 11:18 AM, O. Klein <kl...@octoweb.nl> wrote:

> Steven White wrote
> > Thanks for updating the wiki page.  However, my issue remains, I cannot
> > get
> > Basic auth working.  Has anyone got it working, on Windows?
>
> Doesn't work for me on Linux either.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Basic-auth-tp4218053p4218519.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to