Whenever a user logs into xi the following commands are added to the /usr/local/nagiosxi/var/cmdsubsys.log file
PROCESS COMMAND: CMD=1100, DATA=a:2:{s:8:"username";s:2:"bob";s:8:"password";s:8:"mypassword";}
CMDLINE=/usr/bin/htpasswd -b /usr/local/nagiosxi/etc/htpasswd.users bob mypassword
Updating password for user bob
OUTPUT=
RETURNCODE=0
Where mypassword is obviously my password in plaintext. I've observed this even when using LDAP authentication.
From a security POV this is obviously not desirable, as it seems pointless to ensure that connections to the web server and ldap server are secure if my password appears as plaintext in file, even if it is transient.
My questions are:
- Is this something I've inadvertently enabled, and if so, can I turn it off?
If this is the standard process, can I turn it off?
Are there any alternatives to logging in that won't do this?
Any suggestions?
Cheers, Ian