You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by so...@gmail.com on 2015/07/19 01:10:32 UTC

Basic auth

SOLR-4470 is about:
Support for basic auth in internal Solr  requests.

What is wrong with the internal requests?
Can someone help simplify, would it ever be possible to run with basic auth? What work arounds?

Regards

Re: Basic auth

Posted by Noble Paul <no...@gmail.com>.
"Although I'm not sure why you took this approach instead of
supporting  simple built-in basic auth and let us configure security
the "old/easy" way"

Going with Jetty basic auth is not useful in a large enough  cluster.
Where do you store the credentials and how would you propagate it
across the cluster. When you use Solr, you need a SOlr like way of
managing that. The other problem is inter-node communication. How do
you pass credentials along in that case

"I'm guessing it has to do with future requirement of field/doc level security"

Acutally that is an orthogonal requirement

"I hope you can get rid of the war file soon and start promoting Solr
as a set of libraries so one can easily embed/extend Solr"

That is not what we have in mind. We want Solr to be a server which
controls every aspect of its running . We should have the choice of
getting rid of jetty or whatsoever and move to a new system. We only
guarantee to interface/protocol to remain constant



On Tue, Jul 28, 2015 at 2:19 AM, Fadi Mohsen <fa...@gmail.com> wrote:
> Thank you, I tested providing my implementation of authentication in security.json, uploaded file to ZK (just considering authentication), started nodes and it worked like a charm.
>
> That required of course turning off Jetty basic auth.
>
> Although I'm not sure why you took this approach instead of supporting  simple built-in basic auth and let us configure security the "old/easy" way.
>
> I'm guessing it has to do with future requirement of field/doc level security.
>
> I hope you can get rid of the war file soon and start promoting Solr as a set of libraries so one can easily embed/extend Solr, since some (especially me) might consider command line ZK operations are not that "continues delivery/automate everything/production" friendly.
>
> It's easy today to spin up a jetty and wire / point out resource classes or wire up CXF alongside to get things playing, but I'm probably missing out of other things since I see many mails usually in consensus of not embedding and rather want people to consider Solr as a stand-alone service, not sure why!
> I'm probably getting out of context here.
>
> Regards
>
>> On 27 Jul 2015, at 13:17, Noble Paul <no...@gmail.com> wrote:
>>
>> Q.do you know when it would be released?
>> 5.3 will be released in another 3-4 weeks .
>>
>> Q.Are there any requirements of ZK authentication must be there as well?
>> NO
>>
>> bq.Providing my own security.json + class/implementation to verify
>> user/pass should work today with 5.2, right?
>>
>> Yes. But, if you modify your credentials or anything in that JSON, you
>> will have to restart all your nodes .
>>
>> Q.SOLR-7274 pluggable security is already in 5.2 (my requirement is to
>> provide user/pass in a secure manner, not as argument on cmd or from
>> (our unsecured) ZK but from a configuration restful service,
>>
>> I'm not clear what your question is. Basic Auth is a well-known
>> standard. We are just implementing that standard. We store all
>> credentials & permissions in ZK . That means it is only as secure as
>> your ZK . As long as nobody can write to ZK, your system is safe
>>
>>> On Wed, Jul 22, 2015 at 11:10 PM, Fadi Mohsen <fa...@gmail.com> wrote:
>>> Hi, I have some questions regarding basic auth and proper support in 5.3:
>>>
>>> do you know when it would be released?
>>>
>>> Are there any requirements of ZK authentication must be there as well?
>>>
>>> Do we store the user/pass in ZK?
>>>
>>> SOLR-7274 pluggable security is already in 5.2 (my requirement is to provide user/pass in a secure manner, not as argument on cmd or from (our unsecured) ZK but from a configuration restful service,
>>> I'm not sure 5.3 release would fit above requirement, can you reflect on this?
>>>
>>> Providing my own security.json + class/implementation to verify user/pass should work today with 5.2, right?
>>>
>>> Thanks
>>> Fadi
>>>
>>>> On 22 Jul 2015, at 14:33, Noble Paul <no...@gmail.com> wrote:
>>>>
>>>> Solr 5.3 is coming with proper basic auth support
>>>>
>>>>
>>>> https://issues.apache.org/jira/browse/SOLR-7692
>>>>
>>>>> On Wed, Jul 22, 2015 at 5:28 PM, Peter Sturge <pe...@gmail.com> wrote:
>>>>> 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.
>>>>
>>>>
>>>>
>>>> --
>>>> -----------------------------------------------------
>>>> Noble Paul
>>
>>
>>
>> --
>> -----------------------------------------------------
>> Noble Paul



-- 
-----------------------------------------------------
Noble Paul

Re: Basic auth

Posted by Fadi Mohsen <fa...@gmail.com>.
Thank you, I tested providing my implementation of authentication in security.json, uploaded file to ZK (just considering authentication), started nodes and it worked like a charm.

That required of course turning off Jetty basic auth.

Although I'm not sure why you took this approach instead of supporting  simple built-in basic auth and let us configure security the "old/easy" way.

I'm guessing it has to do with future requirement of field/doc level security.

I hope you can get rid of the war file soon and start promoting Solr as a set of libraries so one can easily embed/extend Solr, since some (especially me) might consider command line ZK operations are not that "continues delivery/automate everything/production" friendly.

It's easy today to spin up a jetty and wire / point out resource classes or wire up CXF alongside to get things playing, but I'm probably missing out of other things since I see many mails usually in consensus of not embedding and rather want people to consider Solr as a stand-alone service, not sure why!
I'm probably getting out of context here.

Regards

> On 27 Jul 2015, at 13:17, Noble Paul <no...@gmail.com> wrote:
> 
> Q.do you know when it would be released?
> 5.3 will be released in another 3-4 weeks .
> 
> Q.Are there any requirements of ZK authentication must be there as well?
> NO
> 
> bq.Providing my own security.json + class/implementation to verify
> user/pass should work today with 5.2, right?
> 
> Yes. But, if you modify your credentials or anything in that JSON, you
> will have to restart all your nodes .
> 
> Q.SOLR-7274 pluggable security is already in 5.2 (my requirement is to
> provide user/pass in a secure manner, not as argument on cmd or from
> (our unsecured) ZK but from a configuration restful service,
> 
> I'm not clear what your question is. Basic Auth is a well-known
> standard. We are just implementing that standard. We store all
> credentials & permissions in ZK . That means it is only as secure as
> your ZK . As long as nobody can write to ZK, your system is safe
> 
>> On Wed, Jul 22, 2015 at 11:10 PM, Fadi Mohsen <fa...@gmail.com> wrote:
>> Hi, I have some questions regarding basic auth and proper support in 5.3:
>> 
>> do you know when it would be released?
>> 
>> Are there any requirements of ZK authentication must be there as well?
>> 
>> Do we store the user/pass in ZK?
>> 
>> SOLR-7274 pluggable security is already in 5.2 (my requirement is to provide user/pass in a secure manner, not as argument on cmd or from (our unsecured) ZK but from a configuration restful service,
>> I'm not sure 5.3 release would fit above requirement, can you reflect on this?
>> 
>> Providing my own security.json + class/implementation to verify user/pass should work today with 5.2, right?
>> 
>> Thanks
>> Fadi
>> 
>>> On 22 Jul 2015, at 14:33, Noble Paul <no...@gmail.com> wrote:
>>> 
>>> Solr 5.3 is coming with proper basic auth support
>>> 
>>> 
>>> https://issues.apache.org/jira/browse/SOLR-7692
>>> 
>>>> On Wed, Jul 22, 2015 at 5:28 PM, Peter Sturge <pe...@gmail.com> wrote:
>>>> 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.
>>> 
>>> 
>>> 
>>> --
>>> -----------------------------------------------------
>>> Noble Paul
> 
> 
> 
> -- 
> -----------------------------------------------------
> Noble Paul

Re: Basic auth

Posted by Noble Paul <no...@gmail.com>.
Q.do you know when it would be released?
5.3 will be released in another 3-4 weeks .

Q.Are there any requirements of ZK authentication must be there as well?
NO

bq.Providing my own security.json + class/implementation to verify
user/pass should work today with 5.2, right?

Yes. But, if you modify your credentials or anything in that JSON, you
will have to restart all your nodes .

Q.SOLR-7274 pluggable security is already in 5.2 (my requirement is to
provide user/pass in a secure manner, not as argument on cmd or from
(our unsecured) ZK but from a configuration restful service,

I'm not clear what your question is. Basic Auth is a well-known
standard. We are just implementing that standard. We store all
credentials & permissions in ZK . That means it is only as secure as
your ZK . As long as nobody can write to ZK, your system is safe

On Wed, Jul 22, 2015 at 11:10 PM, Fadi Mohsen <fa...@gmail.com> wrote:
> Hi, I have some questions regarding basic auth and proper support in 5.3:
>
> do you know when it would be released?
>
> Are there any requirements of ZK authentication must be there as well?
>
> Do we store the user/pass in ZK?
>
> SOLR-7274 pluggable security is already in 5.2 (my requirement is to provide user/pass in a secure manner, not as argument on cmd or from (our unsecured) ZK but from a configuration restful service,
> I'm not sure 5.3 release would fit above requirement, can you reflect on this?
>
> Providing my own security.json + class/implementation to verify user/pass should work today with 5.2, right?
>
> Thanks
> Fadi
>
>> On 22 Jul 2015, at 14:33, Noble Paul <no...@gmail.com> wrote:
>>
>> Solr 5.3 is coming with proper basic auth support
>>
>>
>> https://issues.apache.org/jira/browse/SOLR-7692
>>
>>> On Wed, Jul 22, 2015 at 5:28 PM, Peter Sturge <pe...@gmail.com> wrote:
>>> 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.
>>
>>
>>
>> --
>> -----------------------------------------------------
>> Noble Paul



-- 
-----------------------------------------------------
Noble Paul

Re: Basic auth

Posted by Fadi Mohsen <fa...@gmail.com>.
Hi, I have some questions regarding basic auth and proper support in 5.3:

do you know when it would be released?
 
Are there any requirements of ZK authentication must be there as well?

Do we store the user/pass in ZK?

SOLR-7274 pluggable security is already in 5.2 (my requirement is to provide user/pass in a secure manner, not as argument on cmd or from (our unsecured) ZK but from a configuration restful service, 
I'm not sure 5.3 release would fit above requirement, can you reflect on this? 

Providing my own security.json + class/implementation to verify user/pass should work today with 5.2, right?

Thanks
Fadi

> On 22 Jul 2015, at 14:33, Noble Paul <no...@gmail.com> wrote:
> 
> Solr 5.3 is coming with proper basic auth support
> 
> 
> https://issues.apache.org/jira/browse/SOLR-7692
> 
>> On Wed, Jul 22, 2015 at 5:28 PM, Peter Sturge <pe...@gmail.com> wrote:
>> 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.
> 
> 
> 
> -- 
> -----------------------------------------------------
> Noble Paul

Re: Basic auth

Posted by Peter Sturge <pe...@gmail.com>.
Try adding the "start" call in your jetty.xml:
            <Set name="name">Realm Name</Set>
            <Set name="config"><SystemProperty name="jetty.home"
default="."/>/etc/realm.properties</Set>
            <Set name="refreshInterval">5</Set>
            <Call name="start"></Call>


On Wed, Jul 22, 2015 at 2:53 PM, O. Klein <kl...@octoweb.nl> wrote:

> Yeah I can't get it to work on Jetty 9 either on Linux.
>
> Just trying to password protect the admin pages.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Basic-auth-tp4218053p4218565.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Re: Basic auth

Posted by "O. Klein" <kl...@octoweb.nl>.
Yeah I can't get it to work on Jetty 9 either on Linux.

Just trying to password protect the admin pages.



--
View this message in context: http://lucene.472066.n3.nabble.com/Basic-auth-tp4218053p4218565.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Basic auth

Posted by Steven White <sw...@gmail.com>.
SOLR-7692 is for ZK (or did I get it wrong?)  In my case, I'm trying what's
documented here:
https://wiki.apache.org/solr/SolrSecurity#Jetty_realm_example and it won't
work (see my earlier email).

Steve

On Wed, Jul 22, 2015 at 8:33 AM, Noble Paul <no...@gmail.com> wrote:

> Solr 5.3 is coming with proper basic auth support
>
>
> https://issues.apache.org/jira/browse/SOLR-7692
>
> On Wed, Jul 22, 2015 at 5:28 PM, Peter Sturge <pe...@gmail.com>
> wrote:
> > 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.
> >>
>
>
>
> --
> -----------------------------------------------------
> Noble Paul
>

Re: Basic auth

Posted by Noble Paul <no...@gmail.com>.
Solr 5.3 is coming with proper basic auth support


https://issues.apache.org/jira/browse/SOLR-7692

On Wed, Jul 22, 2015 at 5:28 PM, Peter Sturge <pe...@gmail.com> wrote:
> 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.
>>



-- 
-----------------------------------------------------
Noble Paul

Re: Basic auth

Posted by Peter Sturge <pe...@gmail.com>.
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.
>

Re: Basic auth

Posted by "O. Klein" <kl...@octoweb.nl>.
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.

Re: Basic auth

Posted by Steven White <sw...@gmail.com>.
Thanks for updating the wiki page.  However, my issue remains, I cannot get
Basic auth working.  Has anyone got it working, on Windows?

Steve

On Mon, Jul 20, 2015 at 9:09 AM, Shawn Heisey <ap...@elyograg.org> wrote:

> On 7/20/2015 6:06 AM, Steven White wrote:
> > Just to be clear, the example at
> > https://wiki.apache.org/solr/SolrSecurity#Jetty_realm_example states to
> > modify the file in /example/etc/webdefault.xml and in
> > /example/etc/jetty.xml, but with Solr 5.2.1, those two files are in
> > C:\solr-5.2.1\server\etc\webdefault.xml and
> > C:\solr-5.2.1\server\etc\jetty.xml
>
> I have updated the wiki page so it has information relevant for 5.x,
> with notes for older versions.  Thanks for letting me know it was outdated!
>
> Thanks,
> Shawn
>
>

Re: Basic auth

Posted by Shawn Heisey <ap...@elyograg.org>.
On 7/20/2015 6:06 AM, Steven White wrote:
> Just to be clear, the example at
> https://wiki.apache.org/solr/SolrSecurity#Jetty_realm_example states to
> modify the file in /example/etc/webdefault.xml and in
> /example/etc/jetty.xml, but with Solr 5.2.1, those two files are in
> C:\solr-5.2.1\server\etc\webdefault.xml and
> C:\solr-5.2.1\server\etc\jetty.xml

I have updated the wiki page so it has information relevant for 5.x,
with notes for older versions.  Thanks for letting me know it was outdated!

Thanks,
Shawn


Re: Basic auth

Posted by Steven White <sw...@gmail.com>.
Hi Everyone,

I don't mean to hijack this thread, but I have auth issues that maybe
related to this topic.

I'm on 5.2.1 and trying to setup basic auth using jetty realm per
https://wiki.apache.org/solr/SolrSecurity#Jetty_realm_example  And I found
other examples on the web which are very similar to the above link.  In
addition, I found Jetty's own basic auth setting at:
http://wiki.eclipse.org/Jetty/Tutorial/Realms

Problem is, no matter what I do I cannot get it to work, I get HTTP Error
404 when I try to access Solr's URL and when I look in
C:\Solr\solr-5.2.1\server\logs\solr.log this is all that I see:

INFO  - 2015-07-20 02:16:12.065; [   ] org.eclipse.jetty.util.log.Log;
Logging initialized @286ms
INFO  - 2015-07-20 02:16:12.231; [   ] org.eclipse.jetty.server.Server;
jetty-9.2.10.v20150310
WARN  - 2015-07-20 02:16:12.240; [   ]
org.eclipse.jetty.server.handler.RequestLogHandler; !RequestLog
INFO  - 2015-07-20 02:16:12.255; [   ]
org.eclipse.jetty.server.AbstractConnector; Started ServerConnector@5a5fae16
{HTTP/1.1}{0.0.0.0:8983}
INFO  - 2015-07-20 02:16:12.256; [   ] org.eclipse.jetty.server.Server;
Started @478ms

Just to be clear, the example at
https://wiki.apache.org/solr/SolrSecurity#Jetty_realm_example states to
modify the file in /example/etc/webdefault.xml and in
/example/etc/jetty.xml, but with Solr 5.2.1, those two files are in
C:\solr-5.2.1\server\etc\webdefault.xml and
C:\solr-5.2.1\server\etc\jetty.xml

Lastly, I'm doing the above on Windows.

Thanks

Steve

On Sun, Jul 19, 2015 at 2:20 PM, Erick Erickson <er...@gmail.com>
wrote:

> You're mixing up a couple of things. The Drupal is specific to, well,
> Drupal. You'd probably be best off asking about that on the Drupal
> lists.
>
> SOLR-4470 has not been committed yet, so you can't really use it. This
> may have been superceded by SOLR-7274 and there's a link to the Wiki
> that points to:
> https://cwiki.apache.org/confluence/display/solr/Security
>
> This is all quite new, not sure how much is written in the way of docs.
>
> Best,
> Erick
>
> On Sun, Jul 19, 2015 at 9:35 AM,  <so...@gmail.com> wrote:
> > I followed this guide:
> >
> http://learnsubjects.drupalgardens.com/content/how-place-http-authentication-solr
> >
> > But there is some something wrong, can anyone help or refer to a guide
> on how to setup http basic auth?
> >
> > Regards
> >
> >> On 19 Jul 2015, at 01:10, solr.user.1507@gmail.com wrote:
> >>
> >> SOLR-4470 is about:
> >> Support for basic auth in internal Solr  requests.
> >>
> >> What is wrong with the internal requests?
> >> Can someone help simplify, would it ever be possible to run with basic
> auth? What work arounds?
> >>
> >> Regards
>

Re: Basic auth

Posted by Erick Erickson <er...@gmail.com>.
You're mixing up a couple of things. The Drupal is specific to, well,
Drupal. You'd probably be best off asking about that on the Drupal
lists.

SOLR-4470 has not been committed yet, so you can't really use it. This
may have been superceded by SOLR-7274 and there's a link to the Wiki
that points to:
https://cwiki.apache.org/confluence/display/solr/Security

This is all quite new, not sure how much is written in the way of docs.

Best,
Erick

On Sun, Jul 19, 2015 at 9:35 AM,  <so...@gmail.com> wrote:
> I followed this guide:
> http://learnsubjects.drupalgardens.com/content/how-place-http-authentication-solr
>
> But there is some something wrong, can anyone help or refer to a guide on how to setup http basic auth?
>
> Regards
>
>> On 19 Jul 2015, at 01:10, solr.user.1507@gmail.com wrote:
>>
>> SOLR-4470 is about:
>> Support for basic auth in internal Solr  requests.
>>
>> What is wrong with the internal requests?
>> Can someone help simplify, would it ever be possible to run with basic auth? What work arounds?
>>
>> Regards

Re: Basic auth

Posted by so...@gmail.com.
I followed this guide:
http://learnsubjects.drupalgardens.com/content/how-place-http-authentication-solr

But there is some something wrong, can anyone help or refer to a guide on how to setup http basic auth?

Regards

> On 19 Jul 2015, at 01:10, solr.user.1507@gmail.com wrote:
> 
> SOLR-4470 is about:
> Support for basic auth in internal Solr  requests.
> 
> What is wrong with the internal requests?
> Can someone help simplify, would it ever be possible to run with basic auth? What work arounds?
> 
> Regards