Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A83CD200C67 for ; Mon, 15 May 2017 14:44:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A6D9B160BC2; Mon, 15 May 2017 12:44:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E9325160BC1 for ; Mon, 15 May 2017 14:44:08 +0200 (CEST) Received: (qmail 81105 invoked by uid 500); 15 May 2017 12:44:07 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 81095 invoked by uid 99); 15 May 2017 12:44:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 May 2017 12:44:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5C001C05A7 for ; Mon, 15 May 2017 12:44:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 55VbRHgucd91 for ; Mon, 15 May 2017 12:44:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 302015F5C6 for ; Mon, 15 May 2017 12:44:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E9DD1E0D56 for ; Mon, 15 May 2017 12:44:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3802C2430D for ; Mon, 15 May 2017 12:44:04 +0000 (UTC) Date: Mon, 15 May 2017 12:44:04 +0000 (UTC) From: "Ishan Chattopadhyaya (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SOLR-8440) Script support for enabling basic auth MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 15 May 2017 12:44:09 -0000 [ https://issues.apache.org/jira/browse/SOLR-8440?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Ishan Chattopadhyaya updated SOLR-8440: --------------------------------------- Attachment: SOLR-8440-follow-up.patch Updated the patch: # Changed {{-blockUnknown}} and {{-prompt}} to have a true|false argument. # Accepts -s and -d (home and server directory), where basicAuth.conf is ke= pt. # Updated the Windows script to parse the parameters. # Introduced {{-updateIncludeFileOnly true|false}} parameter, which avoids = updating security.json and only updates the solr.in.sh / solr.in.cmd. Tested manually on GNU/Linux and Windows. [~janhoy], please review. I'll te= st a bit more before committing. > Script support for enabling basic auth > -------------------------------------- > > Key: SOLR-8440 > URL: https://issues.apache.org/jira/browse/SOLR-8440 > Project: Solr > Issue Type: New Feature > Components: scripts and tools > Reporter: Jan H=C3=B8ydahl > Assignee: Ishan Chattopadhyaya > Labels: authentication, security > Fix For: 6.6, master (7.0) > > Attachments: SOLR-8440-follow-up.patch, SOLR-8440-follow-up.patch= , SOLR-8440.patch, SOLR-8440.patch, SOLR-8440.patch, SOLR-8440.patch, SOLR-= 8440.patch, SOLR-8440.patch, SOLR-8440.patch, SOLR-8440.patch, SOLR-8840_op= t_parsing.patch > > > Now that BasicAuthPlugin will be able to work without an AuthorizationPlu= gin (SOLR-8429), it would be sweet to provide a super simple way to "Passwo= rd protect Solr"=E2=84=A2 right from the command line: > {noformat} > bin/solr basicAuth -adduser -user solr -pass SolrRocks > {noformat} > It would take the mystery out of enabling one single password across the = board. The command would do something like this > # Check if HTTPS is enabled, and if not, print a friendly warning > # Check if {{/security.json}} already exists > ## NO =3D> create one with only plugin class defined > ## YES =3D> Abort if exists but plugin is not {{BasicAuthPlugin}} > # Using security REST API, add the new user -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org