2016-09-18 1 views
0

Wenn ich WebNMS Java-basierte SNMP-APIs für die Kommunikation mit SNMPv3 verwende, erhalte ich einen Fehler bei der Verwendung der SHA-DES-Kombination. Alle anderen Kombinationen (MD5-DES, noAuthNoPriv usw.) funktionieren einwandfrei.WebNMS - SNMPv3 über SHA-DES funktioniert nicht

Digest Failed : RemoteHost = 10.121.32.163 : RemotePort = 5000 : UserName = batty

returning : -1could not send a wrongDigests report PDU Failed to authenticate the SecurityParameters for user batty authKey length has to be 20

WebNMS Low-Level-API-Fehler folgendes sagen über den Fehler:

If an SNMPv3 message is send to an SNMPv3 agent, it checks whether the authParams is correct. In case if the authParams is incorrect, it sends this error to the originator. The agent developed using WebNMS SNMP API will automatically send the report PDU on receiving the SNMP message. If the authParams of the message is wrong, this error is sent to the originator.

und

AuthProtocol: SHA Context Name, ContextEngineID are not specified.

Aber ich festgestellt, dass alle diese Informationen korrekt sind.

Jeder, der auf dieses Problem stieß? Wie kann man das beheben?

Antwort

0

Dies ist ein Fehler in der API USMUtils.password_to_key. Es gibt den Authentifizierungsschlüssel mit der Länge 16 zurück, wenn das priv-Protokoll (AES-128 und DES) mit dem Authentifizierungs-Protokoll SHA verwendet wird.

Verwendet veraltetes password_to_key, um das Problem zu lösen.

Deprecated. This method cannot be used to generate localized privacy key if the privacy protocol is other than CBC_DES and CFB_AES_128.

Verwandte Themen