[SNMP4J] Prevent access with VacmMIB

Matthieu Casanova chocolat.mou at gmail.com
Tue May 9 14:08:43 CEST 2006


Hi, I'm trying to configure the access to an snmp agent, and I'm adding
access
to VacmMIB.
When calling method
vacmMib.addAccess(....)
I want to prevent write access. Javadoc says to use zero length OctetString
for parameter writeView.
So I give new OctetString().
But when doing a SET on the agent, when processing the request, the agent
calls  the method VacmMIB.getViewNameByGroup()
that will return my empty OctetString. And because it's not null the access
is allowed.
It seems that giving null to the addAccess method works better.
Is it a javadoc error or a problem in my code ?

Matthieu



More information about the SNMP4J mailing list