How to Encrypt Database Passwords

From NetXMS Wiki
Revision as of 17:02, 20 January 2014 by Victor (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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. 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.