Jetty/SOLR Admin Panel Password

前端 未结 2 1698
一生所求
一生所求 2021-01-06 01:06

I am applying authentication on SOLR Admin Panel using jetty. I have read so many tutorials and implemented using following steps:

Added following code in /solr/core

2条回答
  •  灰色年华
    2021-01-06 01:33

    In your realm.properties file define the user as:

    : ,

    ex: admin: 12345, admin

    Also check your "jetty.home" path. It should be the 'etc' directory in your SOLR core folder.

    Also in realm.properties you should enter your password after hashing & for this there is a default SOLR utility which can be used as:

    java -cp jetty-util-8.1.10.v20130312.jar org.eclipse.jetty.util.security.Password

    ex: java -cp jetty-util-8.1.10.v20130312.jar org.eclipse.jetty.util.security.Password admin 12345

    Output:

    12345 OBF:19bv19bx19bz19c119c3 MD5:827ccb0eea8a706c4c34a16891f84e7b CRYPT:adpliAB3dA.06 You can use any of the three forms in properties file along with their type as:

    admin: MD5:827ccb0eea8a706c4c34a16891f84e7b, admin

    Hope this might help!

提交回复
热议问题