Selaa lähdekoodia

set minmal length for snmp v3 password to 8

rajven 1 vuosi sitten
vanhempi
sitoutus
df41423
3 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 1 1
      Readme.en.md
  2. 1 1
      Readme.ru.md
  3. 2 2
      html/admin/devices/editdevice.php

+ 1 - 1
Readme.en.md

@@ -17,7 +17,7 @@ apt install perl libnet-patricia-perl libnetaddr-ip-perl libconfig-tiny-perl lib
 libnet-netmask-perl libtext-iconv-perl libnet-snmp-perl libnet-telnet-perl libdbi-perl \
 libdbd-mysql-perl libparallel-forkmanager-perl libproc-daemon-perl libdatetime-format-dateparse-perl \
 libnetwork-ipv4addr-perl libnet-openssh-perl libfile-tail-perl  \
-libcrypt-cbc-perl libcryptx-perl libdbd-pg-perl libfile-path-tiny-perl libexpect-perl
+libcrypt-cbc-perl libcryptx-perl libdbd-pg-perl libfile-path-tiny-perl libexpect-perl libcrypt-des-perl
 
 #additional packages 
 apt install dnsmasq syslong-ng bind9 bind9-utils bind9-host

+ 1 - 1
Readme.ru.md

@@ -17,7 +17,7 @@ apt install perl libnet-patricia-perl libnetaddr-ip-perl libconfig-tiny-perl lib
 libnet-netmask-perl libtext-iconv-perl libnet-snmp-perl libnet-telnet-perl libdbi-perl \
 libdbd-mysql-perl libparallel-forkmanager-perl libproc-daemon-perl libdatetime-format-dateparse-perl \
 libnetwork-ipv4addr-perl libnet-openssh-perl libfile-tail-perl  \
-libcrypt-cbc-perl libcryptx-perl libdbd-pg-perl libfile-path-tiny-perl libexpect-perl
+libcrypt-cbc-perl libcryptx-perl libdbd-pg-perl libfile-path-tiny-perl libexpect-perl libcrypt-des-perl
 
 #дополнительно
 apt install dnsmasq syslong-ng bind9 bind9-utils bind9-host

+ 2 - 2
html/admin/devices/editdevice.php

@@ -317,9 +317,9 @@ print_editdevice_submenu($page_url, $id, $device['device_type'], $user_info['log
                 print "<tr><td>" . WEB_snmp_v3_user_ro . "</td><td>" . WEB_snmp_v3_ro_password . "</td><td>" . WEB_snmp_v3_user_rw . "</td><td>" . WEB_snmp_v3_rw_password . "</td><td></td>";
                 print "</tr><tr>";
                 print "<td class='data'><input type='text' name='f_snmp3_user_ro' value=" . $device['snmp3_user_ro'] . "></td>\n";
-                print "<td class='data'><input type='text' name='f_snmp3_user_ro_password' value=" . $device['snmp3_user_ro_password'] . "></td>\n";
+                print "<td class='data'><input type='text' name='f_snmp3_user_ro_password' minlength='8' value=" . $device['snmp3_user_ro_password'] . "></td>\n";
                 print "<td class='data'><input type='text' name='f_snmp3_user_rw' value=" . $device['snmp3_user_rw'] . "></td>\n";
-                print "<td class='data'><input type='text' name='f_snmp3_user_rw_password' value=" . $device['snmp3_user_rw_password'] . "></td>\n";
+                print "<td class='data'><input type='text' name='f_snmp3_user_rw_password' minlength='8' value=" . $device['snmp3_user_rw_password'] . "></td>\n";
                 print "</tr>\n";
             } else {
                 print "<tr><td>" . WEB_snmp_version . "</td><td></td><td></td><td></td></tr>";