Fixed two times encription on wmi module pass

This commit is contained in:
Luis Calvo 2020-05-11 11:18:08 +02:00
parent 36d15f3de5
commit 1422e076ac
1 changed files with 4 additions and 1 deletions

View File

@ -622,7 +622,10 @@ function modules_create_agent_module(
// Encrypt passwords.
if (isset($values['plugin_pass'])) {
$values['plugin_pass'] = io_input_password($values['plugin_pass']);
// Avoid two times encryption
$plugin_pass = io_safe_output($values['plugin_pass']);
$values['plugin_pass'] = io_input_password($plugin_pass);
}
// Encrypt SNMPv3 passwords.