Menu

#254 usmUser update fix for 5.0.8

closed
None
5
2012-11-08
2003-08-20
Anonymous
No

Applies to net-snmp 5.0.8 on any platform

When usm_add_user_to_list() (from snmplib/snmpusm.c)
gets called with a user that already exists in the
userList, it discards the user although there may be
different credentials associated with the new user!

This especially causes problems when restarting snmpd
or snmptrapd (by SIGHUP) with updated "usmUser"
configuration in snmp[trap]d.conf. The daemon keeps the
old credentials for existing users and discards the new
credentials. Adding new users this way works fine, though.

This patch fixes this behaviour and properly adds the
new usmUser to the list.

See the net-snmp-coders discussion for further details:
<http://sourceforge.net/mailarchive/forum.php?thread_id=2903889&forum_id=7152>

Please integrate this patch (unified diff) into the
main tree ASAP.

Thanks,
Thomas

Discussion

  • Nobody/Anonymous

    snmpusm.c.patch

     
  • Wes Hardaker

    Wes Hardaker - 2003-09-06

    Logged In: YES
    user_id=76242

    Thanks for the patch! It has been applied to the next release of
    the
    net-snmp package.

     

Log in to post a comment.

MongoDB Logo MongoDB