lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-7837) Implement BasicAuth Authentication Plugin
Date Sun, 09 Aug 2015 10:23:46 GMT

    [ https://issues.apache.org/jira/browse/SOLR-7837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679081#comment-14679081
] 

ASF subversion and git services commented on SOLR-7837:
-------------------------------------------------------

Commit 1694864 from [~noble.paul] in branch 'dev/branches/lucene_solr_5_3'
[ https://svn.apache.org/r1694864 ]

SOLR-7757: Improved security framework where security components can be edited/reloaded, Solr
now watches /security.json. Components can choose to make their config editable, SOLR-7838:
An authorizationPlugin interface where the access control rules are stored/managed in ZooKeeper
, SOLR-7837: An AuthenticationPlugin which implements the HTTP BasicAuth protocol and stores
credentials securely in ZooKeeper

> Implement BasicAuth Authentication Plugin
> -----------------------------------------
>
>                 Key: SOLR-7837
>                 URL: https://issues.apache.org/jira/browse/SOLR-7837
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>
> The sample config in ZK would look like
> {code}
> {
> "authentication":{
>    "class":"solr.BasicAuthPlugin",
>    "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="}
> }}
> {code}
> There is an API to add, edit or remove users. Please note that the commands shown below
are tied to this specific Basic authentication implementation and the same set of commands
are not valid if the implementation class is not solr.BasicAuthPlugin.
> Example 1: Adding a user and editing a password
> {code}
> curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json'-d
'{ 
>   "set-user": {"tom" : "TomIsCool" , 
>                "harry":"HarrysSecret"}}'
>  {code}
> Example 2: Deleting a user
> {code}
> curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json'-d
 '{
>  "delete-user": ["tom","harry"]}'
> {code}



--
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


Mime
View raw message