Hi, Shawn, Thanks. So, we can not add some credentials at first in the security.json, right? To simplify, I just want to hardcode some users before the Solr starts. Googling the topic about "Basic authentication for Solr Admin panel", we can call jetty utility for generating encrypted password as follow: java -cp jetty-util-8.1.10.v20130312.jar org.eclipse.jetty.util.security.Password <user name> <cleartext password>. ThanksLiu Peng ----- 原始邮件 ----- 发件人:Shawn Heisey <apa...@elyograg.org> 收件人:solr-user@lucene.apache.org 主题:Re: How to encrypte the password for basic authentication of Solr 日期:2016年05月17日 21点32分
On 5/17/2016 7:23 AM, Shawn Heisey wrote: > On 5/17/2016 2:23 AM, t...@sina.com wrote: >> How to get the encrypted password for the user solr? > You can't get the password from the encrypted version. That's the > entire point of encrypting the password. It occurred to me after I sent this that I perhaps have answered the wrong question. Once you have the example security.json in place, you can use that solr user (and the default password) with the set-user functionality in the /admin/authentication API to create a new user or to change the password on the solr user. This is described in the documentation page you linked in a section titled "Add a User or Edit a Password". If you choose to add a user, you can use that user to delete the initial solr user with the delete-user functionality. There is no utility provided with Solr that can generate encrypted passwords. I think we need one. Thanks, Shawn