mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Fixes issue-4677
This commit is contained in:
		| @@ -560,8 +560,8 @@ function snmp_gen_auth(&$device) | ||||
|          | ||||
|         if ($device['authlevel'] === 'noAuthNoPriv') { | ||||
|             // We have to provide a username anyway (see Net-SNMP doc) | ||||
|             // FIXME: There are two other places this is set - why are they ignored here? | ||||
|             $cmd .= ' -u root'; | ||||
|             $username = isset($device['authname']) ? $device['authname'] : 'root'; | ||||
|             $cmd .= " -u '".$username."'"; | ||||
|         } elseif ($device['authlevel'] === 'authNoPriv') { | ||||
|             $cmd .= " -a '".$device['authalgo']."'"; | ||||
|             $cmd .= " -A '".$device['authpass']."'"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user