Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      The sample config in ZK would look like

      {
      
      "authentication":{
      
         "class":"solr.BasicAuthPlugin",
      
         "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="}
      
      }}
      
      

      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

      curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json'-d '{ 
        "set-user": {"tom" : "TomIsCool" , 
                     "harry":"HarrysSecret"}}'
       

      Example 2: Deleting a user

      curl --user solr:SolrRocks http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json'-d  '{
       "delete-user": ["tom","harry"]}'
      

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1694555 from Noble Paul in branch 'dev/trunk'
        [ https://svn.apache.org/r1694555 ]

        SOLR-7837: An AuthenticationPlugin which implements the HTTP BasicAuth protocol and stores credentials securely in ZooKeeper

        Show
        ASF subversion and git services added a comment - Commit 1694555 from Noble Paul in branch 'dev/trunk' [ https://svn.apache.org/r1694555 ] SOLR-7837 : An AuthenticationPlugin which implements the HTTP BasicAuth protocol and stores credentials securely in ZooKeeper
        Hide
        ASF subversion and git services added a comment -

        Commit 1694558 from Noble Paul in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1694558 ]

        SOLR-7837: An AuthenticationPlugin which implements the HTTP BasicAuth protocol and stores credentials securely in ZooKeeper

        Show
        ASF subversion and git services added a comment - Commit 1694558 from Noble Paul in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1694558 ] SOLR-7837 : An AuthenticationPlugin which implements the HTTP BasicAuth protocol and stores credentials securely in ZooKeeper
        Hide
        ASF subversion and git services added a comment -

        Commit 1694567 from Noble Paul in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1694567 ]

        SOLR-7837: some more java 7 issues

        Show
        ASF subversion and git services added a comment - Commit 1694567 from Noble Paul in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1694567 ] SOLR-7837 : some more java 7 issues
        Hide
        ASF subversion and git services added a comment -

        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

        Show
        ASF subversion and git services added a comment - 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
        Hide
        Shalin Shekhar Mangar added a comment -

        Bulk close for 5.3.0 release

        Show
        Shalin Shekhar Mangar added a comment - Bulk close for 5.3.0 release

          People

          • Assignee:
            Noble Paul
            Reporter:
            Noble Paul
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development