Difference between revisions of "How to Encrypt Database Passwords"

From NetXMS Wiki
Jump to navigation Jump to search
(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...")
 
Line 3: Line 3:
nxencpasswd ''login'' ''password''
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.
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.

Revision as of 17:03, 20 January 2014

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.