SNMP v3 auth is no longer checked for case sensitivity + push pass v3 creds to front of queue (#9102)

* Match api code to addhost.php for v3 config order

* Updated v3 auth checks for case insensitivity + docs
This commit is contained in:
Neil Lathwood
2018-08-29 15:16:33 +01:00
committed by Tony Murray
parent 9350b54464
commit f2253d70fd
3 changed files with 5 additions and 5 deletions

View File

@@ -419,7 +419,7 @@ function add_device()
'cryptoalgo' => mres($data['cryptoalgo']),
);
array_push($config['snmp']['v3'], $v3);
array_unshift($config['snmp']['v3'], $v3);
$snmpver = 'v3';
} else {
api_error(400, 'You haven\'t specified an SNMP version to use');