You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Martin Löper (JIRA)" <ji...@apache.org> on 2016/06/27 20:57:16 UTC
[jira] [Comment Edited] (SOLR-9255) Start Script Basic
Authentication
[ https://issues.apache.org/jira/browse/SOLR-9255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15351794#comment-15351794 ]
Martin Löper edited comment on SOLR-9255 at 6/27/16 8:56 PM:
-------------------------------------------------------------
In https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/util/SolrCLI.java we find:
System.getProperty("solr.authentication.httpclient.builder");
In https://github.com/apache/lucene-solr/blob/master/solr/bin/solr.in.sh l.117-119 there is:
#Settings for authentication
#SOLR_AUTHENTICATION_CLIENT_CONFIGURER=
#SOLR_AUTHENTICATION_OPTS=
In https://github.com/apache/lucene-solr/blob/master/solr/bin/solr l.160:
AUTHC_CLIENT_CONFIGURER_ARG="-Dsolr.authentication.httpclient.configurer=$SOLR_AUTHENTICATION_CLIENT_CONFIGURER"
As far as I see, the name of the system property changed from solr.authentication.httpclient.configurer to solr.authentication.httpclient.builder, but was not correctly adjusted in solr.in.sh.
Can you confirm that? Is that why the SOLR_AUTHENTICATION_CLIENT_CONFIGURER shell variable misbehaves?
was (Author: martinloeper):
https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/util/SolrCLI.java we find:
System.getProperty("solr.authentication.httpclient.builder");
In https://github.com/apache/lucene-solr/blob/master/solr/bin/solr.in.sh l.117-119 there is:
# Settings for authentication
#SOLR_AUTHENTICATION_CLIENT_CONFIGURER=
#SOLR_AUTHENTICATION_OPTS=
In https://github.com/apache/lucene-solr/blob/master/solr/bin/solr l.160:
AUTHC_CLIENT_CONFIGURER_ARG="-Dsolr.authentication.httpclient.configurer=$SOLR_AUTHENTICATION_CLIENT_CONFIGURER"
As far as I see, the name of the system property changed from solr.authentication.httpclient.configurer to solr.authentication.httpclient.builder, but was not correctly adjusted in solr.in.sh.
Can you confirm that? Is that why the SOLR_AUTHENTICATION_CLIENT_CONFIGURER shell variable misbehaves?
> Start Script Basic Authentication
> ---------------------------------
>
> Key: SOLR-9255
> URL: https://issues.apache.org/jira/browse/SOLR-9255
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Authentication
> Affects Versions: 6.1
> Reporter: Martin Löper
>
> I configured SSL and BasicAuthentication with Rule-Based-Authorization.
> I noticed that since the latest changes from 6.0.1 to 6.1.0 I cannot pass the Basic Authentication Credentials to the Solr Start Script anymore. For the previous release I did this via the bin/solr.in.sh shellscript.
> What has happened with the SOLR_AUTHENTICATION_CLIENT_CONFIGURER and SOLR_AUTHENTICATION_OPTS parameters? Are they still in use or is there a new way to pass basic auth credentials on the command-line?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org