Fixed recon task snmp v3 credentials update

This commit is contained in:
Enrique Martin 2024-02-13 15:44:09 +01:00
parent 4b4a94e7fb
commit 5d174013e5
1 changed files with 1 additions and 1 deletions

View File

@ -84,6 +84,6 @@ INSERT IGNORE INTO `tcredential_store` (`identifier`, `id_group`, `product`, `ex
) AS `extra1` ) AS `extra1`
FROM `trecon_task` WHERE `snmp_version` = 3 AND `snmp_enabled` = 1 FROM `trecon_task` WHERE `snmp_version` = 3 AND `snmp_enabled` = 1
; ;
UPDATE `trecon_task` SET `auth_strings` = IF(`auth_strings` = '',@creds_name,CONCAT(@creds_name,`id_rt`,',',`auth_strings`)) WHERE `snmp_version` = 3 AND `snmp_enabled` = 1; UPDATE `trecon_task` SET `auth_strings` = IF(`auth_strings` = '',CONCAT(@creds_name,`id_rt`),CONCAT(@creds_name,`id_rt`,',',`auth_strings`)) WHERE `snmp_version` = 3 AND `snmp_enabled` = 1;
COMMIT; COMMIT;