Skip to content

Commit c64e5bd

Browse files
committed
Add obfuscation for snmpv3 password
Added under SNMP Options.
1 parent 12d5de1 commit c64e5bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

automation_snmp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ function automation_snmp_edit() {
598598
$form_data .= '<td class="right">' . $item['snmp_retries'] . '</td>';
599599
$form_data .= '<td class="right">' . $item['max_oids'] . '</td>';
600600
$form_data .= '<td>' . ($item['snmp_version'] == 3 ? $item['snmp_username'] : 'N/A') . '</td>';
601-
$form_data .= '<td>' . ($item['snmp_version'] == 3 ? $item['snmp_password'] : 'N/A') . '</td>';
601+
$form_data .= '<td>' . (($item['snmp_version'] == 3 AND $item['snmp_password'] !== '') ? '*********' : 'N/A') . '</td>';
602602
$form_data .= '<td>' . ($item['snmp_version'] == 3 ? $item['snmp_auth_protocol'] : 'N/A') . '</td>';
603603
$form_data .= '<td>' . ($item['snmp_version'] == 3 ? $item['snmp_priv_passphrase'] : 'N/A') . '</td>';
604604
$form_data .= '<td>' . ($item['snmp_version'] == 3 ? $item['snmp_priv_protocol'] : 'N/A') . '</td>';

0 commit comments

Comments
 (0)