This is my first installation and I installed version 2.6 on Centos 7. Following the documentation for an RPM install, It installed successfully. But then following the documentation for securing the system, I was told to change the password on the database, which I did. I then also had to change the password in the /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php file, which I did so it looks like:
I was also told to change it in z-ocsinventory-server.conf. That file does not exist on the filesystem, but I do have an ocsinventory-server.conf file in /etc/httpd/conf.d, and it appears to be the same file. I changed the setting in that file so that it looks like this:
PerlSetVar OCS_DB_PWD newpassword
under the # Master Database settings heading.
After restarting apache, I could not access the front end due to no database access. I went and changed the password on mariadb back to the default "ocs", and the system worked again. Deciding to leave it like that, I continued to install an agent on Windows. When the agent ran, it appeared to work, but nothing appeared in the front end. Tailing the apache error logs, I saw that it was trying to do a rollback on a non existing object. I set mariadb to log general queries, and saw that whenever the agent ran, it was getting an "access denied" error from the database. Going back to /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php, I set the password in there to the password that I originally changed to, then the agent started working.
On the web frontend, I get a security warning telling me that the password on the database is the default. Can somebody please explain to me how I should be changing that? I have noticed that changing it in either of the above mentioned files has no affect on the web front end. I set it to anything I want, and the front end still works.