SNMPD not returning "noAccess" for snmpset on an OID which is not present in the view.

"Pamidipati Suresh-G20238" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,
 
When we gave a SNMPV3 set request with a user name configured in the
snmpd.conf, on an OID which is not present in the view configured for
that user, we got the response as notWritable. As per my understanding
of following text in RFC 1905, response should be noAccess.
 
If the variable binding's name specifies an existing or nonexistent
variable to which this request is/would be denied access
because it is/would not be in the appropriate MIB view, then the
value of the Response-PDU's error-status field is set to
'noAccess', and the value of its error-index field is set to the
index of the failed variable binding.
 
I created user by giving the following commands in snmpd.conf file.
 
rwuser user1 auth 1.3.6.1.4.1.18568
createUser user1 MD5 user1234 DES
 
I gave the following snmpset request on an object which is not present
in the view configured for user "user1"
snmpset -v3 -u "user1" -n "" -l authNoPriv -a MD5 -A "user1234" -r 0 -t
10 localhost 1.3.6.1.4.1.161.10.1.1.9.10.2.1.1.1.192.168.1.1 s "hello"
 
The response received is 
Error in packet.
Reason: notWritable (That object does not support modification)

As per RFC 1905, response should be noAccess instead of notWritable, as
the given OID is not present in the view accessible for "user1".
Please let me know if this is a bug in Net-snmp code or my understanding
is incorrect.
 
Regards,
Suresh

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.