In case of INFORMs, the USM details were being over-written when trying to send out the INFORM. In case of INFORM the element first performs a discovery to fetch the Authoritative Engine ID of the receiver. Once the engine ID was received the code (function ‘create_user_from_session’ in file "snmplib/snmp_api.c") used to over-write the AUTH and PRIV protocols of the user by some defaults. Fixed the code in the file ‘snmp_api.c’ to not over-write the user details if they are already present in USM.
Faced this issue when the user and INFORM target was created first using the USM MIB & Notification/Target MIBs and then an INFORM was sent out.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Patch for the above issue
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Net-Snmp version 5.6.1
OS : Cent OS EL 5
Applied the intent of this one with a bit of reformatting. Thanks for the patch! It should be in future 5.3.x releases and upward.