How to Encrypt Database Passwords

From NetXMS Wiki
Jump to: navigation, search

Sometimes configuration files can contain database passwords (for example, DBPassword option in netxmsd.conf or Password in ORACLE section of nxagentd.conf). It is possible to store them in encrypted form. Please note that it will provide only minimal level of security - anybody with access to configuration file and NetXMS source code will be able to decrypt password. To encrypt password, use command line tool nxencpasswd:

nxencpasswd login password

Tool will output encrypted password. Note that you should provide correct login name - encrypted password depends on both login name and clear text password. See appropriate part of the manual for exact instructions for replacing clear text password with encrypted one. For server configuration, replace DBPassword parameter with DBEncryptedPassword and use encrypted password as parameter's value.