CLOUDSTACK-822: system.vm.password is not encrypted

Signed-off-by: Kishan Kavala <kishan@cloud.com>
This commit is contained in:
Saksham Srivastava 2013-02-01 14:17:25 +05:30 committed by Kishan Kavala
parent 6f89a843a8
commit 482ea4a71e
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ public class ConfigurationServerImpl implements ConfigurationServer {
try {
String rpassword = PasswordGenerator.generatePresharedKey(8);
String wSql = "INSERT INTO `cloud`.`configuration` (category, instance, component, name, value, description) "
+ "VALUES ('Hidden','DEFAULT', 'management-server','system.vm.password', '" + rpassword
+ "VALUES ('Secure','DEFAULT', 'management-server','system.vm.password', '" + DBEncryptionUtil.encrypt(rpassword)
+ "','randmon password generated each management server starts for system vm')";
PreparedStatement stmt = txn.prepareAutoCloseStatement(wSql);
stmt.executeUpdate(wSql);