> It looks like Net-SNMP (running v2c) does not respond to input pdu's
> with the wrong community string, the request just times out.
Correct.
> is there a way to get it to respond with an error?
Not to the requesting application, no.
> I know about the "authtrapenable" config value,
But those authentication traps will be sent to whatever trap receivers
have been configured. Not to the application that made the request.
> but in reading the RFC's it seems there should be a response.
Nope.
Have a look at RFC 1157, section 4.1
The relevant bit is the second set of numbered actions,
referring to the receiving entity (i.e. the agent)
In particular:
(3) The protocol entity then passes the community name and
user data found in the ASN.1 Message object.....
to the service which implements the desired
authentication scheme. This entity returns another ASN.1
object, or signals an authentication failure. In the
latter case, the protocol entity notes this failure,
(possibly) generates a trap, and *DISCARDS THE DATAGRAM*
and performs no further actions.
So no response is returned to the requesting application if the
community is not recgnised at all. ("I don't talk to strangers")
This is contrasted with the situation where the community is recognised
("I know who you are") but the request is not allowed ("No")
That would indeed return a 'noSuchName' or similar error response.
But if the community is not recognised, then there's no response at all.
Dave
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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