[SNMP4J] Can I override the limitation of SNMP v3 minimum passphrases length?

Frank Fock fock at agentpp.com
Thu Mar 13 23:00:17 CET 2014


Hi,

You can simply append the password again.
If your password is "1234" you provide "12341234"
which has 8 characters but has the same key than "1234".

Best regards,
Frank

Am 13.03.2014 21:51, schrieb Tal Kapon:
> Hi all ,
>
>
>
> I am using SNMP4J in order to query network equipment.
>
>
>
> Cisco switches allow SNMP v3 users to be defined with passphrases shorter
> than 8 characters. SNMP4J throws the following exception when using short
> passwords. Any way to override this limitation other than changing the
> source code?
>
>
>
> *Caused by: java.lang.IllegalArgumentException: USM passphrases must be at
> least 8 bytes long (RFC3414 ยง11.2)*
>
> *                at org.snmp4j.security.UsmUser.<init>(UsmUser.java:83)*
>
>
>
> Thanks in advance,
>
>
>
> Tal
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231




More information about the SNMP4J mailing list