Hi,

I have an application which worked perfectly in SNMpv3 in AuthnoPriv mode.
There is a requirement like a "context name" is to be added to the snmp 
requests which is sent by the application.
So I have filled the contextName and contextNameLen in netsnmp_pdu with the 
proper values.
Then copied the securityEngineID values to contextEngineID also.

Then I analyzed the packet sent by the application using wire shark.
It is filling the context name in hex code.
It is the exact hex code of the text.
Is this a proper behavior?


Here is the problem.
I have only one snmpd server which sends responses back to this application.
If the application fills the context name in the PDU, it is not receiving any 
response from snmpd.
If context name is not in pdu, everything works fine.
So I added the following line in snmpd.conf and restarted the snmpd server

proxy -Cn context-name -v 3 -u V3User -a md5 -A "Password" -l authnopriv 
localhost .1.3.6.1

Now the application receives the response from the server but it shows 
"Authorization Error."

How can I properly configure the context name on the server side?
Do a different server is required to handle the packets?
Is there any more configuration needed on the server side to make it work?
Any help is much appreciated.

Thanks,
Basil Joseph.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to