Security

I would like to copy my authentication.conf and LDAP.conf from one server to another.

hammon0u
Explorer

I would like to copy my authentication.conf and LDAP.conf and openldap certs diretory from one server to the other but the hashed password in the authentication.conf are unreadable except from the server that created them. Creating an authenticaiton.conf file from the UI for every instance is time consuming and does not allow for deployment authmation. Is there a SEED or certificate files that I need to move with them so the hashes will be usable in the authentication.conf file from one server to the other?

Tags (2)
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

You can do a couple of things:

  • Just replace the hashed values with the plaintext password and copy that file over. The next time the Splunk instance starts, it will re-hash the password.

OR

  • Copy the file, and also copy the $SPLUNK_HOME/etc/auth/splunk.secret file, and copy and edit the $SPLUNK_HOME/etc/system/local/server.conf and the $SPLUNK_HOME/etc/passwd files, as these files contain hashes that depend on splunk.secret, and will be invalid with a new splunk.secret. Note that the usual server.conf file has a server specific host name in it, but you could replace that with the line serverName = $HOSTNAME to use the environment variable rather than having it hard-coded.

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

You can do a couple of things:

  • Just replace the hashed values with the plaintext password and copy that file over. The next time the Splunk instance starts, it will re-hash the password.

OR

  • Copy the file, and also copy the $SPLUNK_HOME/etc/auth/splunk.secret file, and copy and edit the $SPLUNK_HOME/etc/system/local/server.conf and the $SPLUNK_HOME/etc/passwd files, as these files contain hashes that depend on splunk.secret, and will be invalid with a new splunk.secret. Note that the usual server.conf file has a server specific host name in it, but you could replace that with the line serverName = $HOSTNAME to use the environment variable rather than having it hard-coded.

msudhindra
Path Finder

Is there any chance that the splunk.secret and the passwd files can be pushed out from the deployment server ?

We have all our indexers reporting into a central deployment server, and just the ability to push out all these files would help immensely.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...