Menu

#2940 net-snmp-create-v3-user fails to create user for authNoPriv option

solaris
open
nobody
None
4
2019-05-17
2019-05-17
lijo
No

I tried the example at
http://net-snmp.sourceforge.net/docs/README.snmpv3.html
to create a SNMP v3 user with the authNoPriv option( Solaris system with net-snmp 5.8),
I observed the following error

root~# net-snmp-config --create-snmpv3-user -a "my_password" myuser
adding the following line to /var/net-snmp/snmpd.conf:
createUser myuser MD5 "my_password" DES ""
adding the following line to /etc/net-snmp/snmp/snmpd.conf:
rwuser myuser
root~# svcadm enable net-snmp
root~# snmpget -v 3 -u myuser -l authNoPriv -a MD5 -A my_password localhost sysUpTime.0
snmpget: Unknown user name (Sub-id not found: (top) -> sysUpTime)

Looks like an empty password is being passed for the DES encryption option.
This behaviour is different from the earlier versions of net-snmp,, it looks like the fix for
https://sourceforge.net/p/net-snmp/bugs/2812/ changed the behaviour.

I tried the same after reverting the fix(attached patch) and the issue goes away.

root~# net-snmp-config --create-snmpv3-user -a "my_password" myuser
adding the following line to /var/net-snmp/snmpd.conf:
createUser myuser MD5 "my_password" DES
adding the following line to /etc/net-snmp/snmp/snmpd.conf:
rwuser myuser
root~# svcadm enable net-snmp
root~# snmpget -v 3 -u myuser -l authNoPriv -a MD5 -A my_password localhost sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (84) 0:00:00.84

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB