This is a multi-part message in MIME format.

--===============0231033046==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C6FF32.485A3B75"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C6FF32.485A3B75
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi All,
=20
I have raised a bug in Net-snmp bug database for the behavior mentioned
in the below mail. =20
Following is the link to the bug.
=20
http://sourceforge.net/tracker/index.php?func=3Ddetail
<http://sourceforge.net/tracker/index...3D1589813&gro=
up_
id=3D12694&atid=3D112694> &aid=3D1589813&group_id=3D12694&atid=3D112694
=20
=20
Regards,
Suresh.
=20

-----Original Message-----
From: net-snmp-users-bounces@lists.sourceforge.net
[mailto:net-snmp-users-bounces@lists.sourceforge.net] On Behalf Of
Pamidipati Suresh-G20238
Sent: Tuesday, October 31, 2006 3:12 PM
To: net-snmp-users@lists.sourceforge.net
Subject: SNMPD not returning "noAccess" for snmpset on an OID which is
notpresent in the view.


Hi All,
=20
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.
=20
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.
=20
I created user by giving the following commands in snmpd.conf file.
=20
rwuser user1 auth 1.3.6.1.4.1.18568
createUser user1 MD5 user1234 DES
=20
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"
=20
The response received is=20
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.
=20
Regards,
Suresh


------_=_NextPart_001_01C6FF32.485A3B75
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



charset=3Dus-ascii">
Message



size=3D2>Hi=20
All,


size=3D2>
 

color=3D#0000ff=20
size=3D2>I have raised a bug in Net-snmp bug database =
for the=20
behavior mentioned in the below mail.  =


size=3D2>Following is the link to the bug.


size=3D2>
 

size=3D2> href=3D"http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D=
1589813&group_id=3D12694&atid=3D112694">http://sourceforge.net/tr=
acker/index.php?func=3Ddetail&aid=3D1589813&group_id=3D1 2694&=
atid=3D112694


size=3D2>
 


size=3D2>
 


size=3D2>Regards,


size=3D2>Suresh.


size=3D2>
 



align=3Dleft> face=3DTahoma size=3D2>-----Original Message-----
From:=20
net-snmp-users-bounces@lists.sourceforge.net=20
[mailto:net-snmp-users-bounces@lists.sourceforge.net] On Behalf Of=20
Pamidipati Suresh-G20238
Sent: Tuesday, October 31, 2006 =
3:12=20
PM
To: =
net-snmp-users@lists.sourceforge.net
Subject: SNMPD=20
not returning "noAccess" for snmpset on an OID which is notpresent in =
the=20
view.


Hi=20
All,

class=3D556221209-31102006> 

When =
we gave a=20
SNMPV3 set request with a user name configured in the snmpd.conf, on =
an OID=20
which is not present in the view configured for that user, we got the =
response=20
as notWritable. As per my understanding of following text in RFC 1905, =

response should be noAccess.

class=3D556221209-31102006> 

class=3D556221209-31102006> size=3D2>If the variable binding’s name =
specifies an existing=20
or nonexistent

variable to which this request =
is/would be=20
denied access

because it is/would not be in the =
appropriate=20
MIB view, then the

value of the Response-PDU’s =
error-status=20
field is set to

‘noAccess’, and the =
value of its error-index=20
field is set to the

index of the failed variable=20
binding.

class=3D556221209-31102006> 

class=3D556221209-31102006>I created=20
user by giving the following commands in snmpd.conf =
file.

class=3D556221209-31102006> 

class=3D556221209-31102006>rwuser user1 auth=20
1.3.6.1.4.1.18568

class=3D556221209-31102006>createUser user1=20
MD5 user1234 DES

class=3D556221209-31102006> 

I =
gave the=20
following snmpset request on an object which is not present in the =
view=20
configured for user "user1"

class=3D556221209-31102006>snmpset -v3 -u=20
"user1" -n "" -l authNoPriv -a MD5 -A "user1234" -r 0 -t 10 localhost=20
1.3.6.1.4.1.161.10.1.1.9.10.2.1.1.1.192.168.1.1 s =
"hello"

class=3D556221209-31102006> 

The =
response=20
received is

class=3D556221209-31102006>Error in=20
packet.
Reason: notWritable (That object does not support=20
modification)

As =
per RFC 1905,=20
response should be noAccess instead of notWritable, as the given OID =
is not=20
present in the view accessible for "user1".

class=3D556221209-31102006>Please let me know=20
if this is a bug in Net-snmp code or my understanding is=20
incorrect.

class=3D556221209-31102006> 

class=3D556221209-31102006>Regards,

class=3D556221209-31102006>Suresh
=


------_=_NextPart_001_01C6FF32.485A3B75--


--===============0231033046==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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=...057&dat=121642
--===============0231033046==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============0231033046==--