# Sets the network interface the Solr binds to. To prevent administrators from
# accidentally exposing Solr more widely than intended, this defaults to 127.0.0.1.
# Administrators should think carefully about their deployment environment and
# set this value as narrowly as required before going to production. In
# environments where security is not a concern, 0.0.0.0 can be used to allow
# Solr to accept connections on all network interfaces.
SOLR_JETTY_HOST="127.0.0.1"
# Sets the network interface the Solr binds to. To prevent administrators from
# accidentally exposing Solr more widely than intended, this defaults to 127.0.0.1.
# Administrators should think carefully about their deployment environment and
# set this value as narrowly as required before going to production. In
# environments where security is not a concern, 0.0.0.0 can be used to allow
# Solr to accept connections on all network interfaces.
SOLR_JETTY_HOST="tp-solr1.example.com"
tp-solr1.example.com . This just means that even if you want to access Solr from a web browser on the same machine where it's hosted, you'll have to use that host name to do so.SOLR_SSL_* properties per the instructions in the guide to indicate that SSL/
# Enables HTTPS. It is implicitly true if you set SOLR_SSL_KEY_STORE. Use this config
# to enable https module with custom jetty configuration.
SOLR_SSL_ENABLED=true
# Uncomment to set SSL-related system properties
# Be sure to update the paths to the correct keystore for your environment
SOLR_SSL_KEY_STORE=$SOLR_HOME/keys.p12
SOLR_SSL_KEY_STORE_PASSWORD=[key store password here]
SOLR_SSL_TRUST_STORE=$SOLR_HOME/trust.p12
SOLR_SSL_TRUST_STORE_PASSWORD=[trust store password here]
# Require clients to authenticate
SOLR_SSL_NEED_CLIENT_AUTH=false
# Enable clients to authenticate (but not require)
SOLR_SSL_WANT_CLIENT_AUTH=false
# Verify client's hostname during SSL handshake
SOLR_SSL_CLIENT_HOSTNAME_VERIFICATION=false
# SSL Certificates contain host/ip "peer name" information that is validated by default. Setting
# this to false can be useful to disable these checks when re-using a certificate on many hosts
SOLR_SSL_CHECK_PEER_NAME=true
# Override Key/Trust Store types if necessary
SOLR_SSL_KEY_STORE_TYPE=PKCS12
SOLR_SSL_TRUST_STORE_TYPE=PKCS12
SOLR_HOME variable should already be set to the traction subdirectory of the Solr installation. You can put the keystore and trust store in any locations you like and reference it here, so long as the user you'll be using to run the Solr service has permission to read those files.https://tp-solr1.example.com .teampage-solrTeamPage@Solr#pa$$w0rdhttps://tp-solr1.example.com:8983 ); enter the credentials provided above; navigate to the Security page; click the teampage-solr user in the list of user accounts; and choose a new password.teampage-solr account, you must assign it the same roles.com.traction.extsearch.solr plug-in contains an example security.
{
"authentication": {
"blockUnknown":true,
"class":"solr.BasicAuthPlugin",
"credentials": {
"teampage-solr": "Fto50H+i454wYzPlJwQg4casHdhxJYJ4GwEEAmcFAMk= K14PVBV8zYZt3eDY3aNracVkzc0lLvAweSsZcsNngNY="
},
"realm": "Solr Users",
"forwardCredentials":false,
"":{"v":3}
},
"authorization":{
"class":"solr.RuleBasedAuthorizationPlugin",
"permissions": [
{
"name":"security-edit",
"role":"admin"
},
{
"name":"security-read",
"role":"admin"
},
{
"name":"all",
"role":"admin"
}
],
"user-role": { "teampage-solr": "admin" }
}
}
base64(SHA256(password+salt)) [space] base64(salt)GenerateSolrPassword utility program to do it for you. You can run it on a password of your choice to generate the required form (the salt will be created for you randomly).GenerateSolrPassword.class file from the TeamPage Solr plug-in's etc/C:\Program Files\Traction\traction\server\plugins\com.traction.extsearch.solr\etc\solr\util .commons-codec.jar file from the main TeamPage lib folder, e.C:\Program Files\Traction\traction\server\lib.C:\Traction; and the password is MyBadP@$$w0rd#654:
C:\Traction\traction\server\plugins\com.traction.extsearch.solr\etc\solr\util>C:\Traction\jre\bin\java.exe -cp C:\Traction\traction\server\lib\commons-codec.jar;. GenerateSolrPassword "MyBadP@$$w0rd#654"
lTC0a6YWCAYTP0FWTZocRqdX10tifZMQbRAqBwRPYH0= 5m2r0s3Vz2wr8Q67L+6b+L6eTgM1D8Lr6zCsOAHv1Ys=
teampage-solr user:
"authentication": {
"blockUnknown":true,
"class":"solr.BasicAuthPlugin",
"credentials": {
"teampage-solr": "lTC0a6YWCAYTP0FWTZocRqdX10tifZMQbRAqBwRPYH0= 5m2r0s3Vz2wr8Q67L+6b+L6eTgM1D8Lr6zCsOAHv1Ys=
"
},
...
},
...
C:\Solr and the security.C:\ folder:
C:\Solr\solr>bin\solr.cmd zk cp C:\security.json zk:security.json -z localhost:9983
security-admin.png