You may wish to change the defaults for several sensitive items before deploying Open-AudIT. These are detailed below.
Open-AudIT (as per any normal web application) uses a configured set of credentials to access the MySQL database.
These can be found in :
To create a fresh new database user, run the below (if using Windows, first do cd c:\xampp\mysql.
If you have installed Open-AudIT on a newly installed database, in the installer you may have elected to set the root user password. By default this password is openauditrootuserpassword.
On some Linux distributions, if you sudo su to the root user, no password is required, hence remove the -p options from the commands below.
Substitude your username and password for YOUR_USER and YOUR_PASSWORD in the commands below.
Now test running a query by the command below.
NOTE - There is no space between the -p and YOUR_PASSWORD.
You should see a result as below.
Once you have confirmed the user can access the openaudit database, we need to change the credentials file.
Edit the file as above, replacing the username and password fields.
Changing the password of the MySQL root user can also be completed as above. I would recommend the below though, for safety.
You will need two shells on the Open-AudIT server open.
Log on as the MySQL root user in session #1.
In the second shell (after successfully logging in above) run the below command, substituting YOUR_NEW_ROOT_PASSWORD.
Now try to log in using that same (second) shell.
If you can log in, you're all done!
If you cannot log in, something has gone wrong - and that is why we have the second session open and already logged in.
Your root user may have different items set, such as it's Host attribute. You should use the already logged in user to check, as below.
And change the SET PASSWORD command above to reflect the Host value in the second session.
Restricting MySQL to localhost
On our shipped version for Windows, we already restrict to localhost.
On some Linux distributions, you might find MySQL listening on all IP addresses. Unless you have a specific reason for this, it is very much recommended to restrict this to localhost.
You can check the listening address by running the below command.
For Debian and Ubuntu
For Redhat and Centos
If you don't get a result, try runnig the below netstat command.
If you see an IP address of 0.0.0.0 with a port of (usually) 3306 (as below), this means MySQL is listening on all available IPs.
You should configure the bind-address to be 127.0.0.1 in:
Debian / Ubuntu: /etc/mysql/mariadb.conf.d/50-server.cnf
Redhat / Centos: /etc/my.cnf.d/server.cnf
Credentials Encryption Key
Open-AudIT encrypts credentials when it stores them in the database, but we must be able to decrypt them in order to use them when querying devices. Because this is reversible encryption, we need a shared secret (or key). This is kept in the file:
Look for the variable as below.
Warning - If you are using the Collectors feature of Open-AudIT Enterprise, this key must be changed on ALL instances - both Server and Collector(s).
Warning #2 - If you already have credentials stored in the database, changing this key will render them unable to be decrypted. I'd suggest exporting the credentials, deleting them all, changing the key, then importing them.
Exporting, deleting and Importing can be done using the GUI.
Admin User and Licensing
You are free to change the password for the Admin user, but the user name itself should be left as is. If changed the license entry will be broken.
This is because at the moment we restrict access to the license functionality based on username, with no GUI options to change it.
If you must change the username, set your license before doing so.
This will be addressed in a future version, however Opmantek can be contacted to walk you through editing files and inserting a license if absolutely required. This is non-trivial.