snmp4j - Can the same USM user be added with different set of authentication and privacy algorithms? -
snmp4j - Can the same USM user be added with different set of authentication and privacy algorithms? -
in code, configuring usm user , adding user snmp v3. want configure user in way back upwards below set of algorithms @ same time.
sha-1 + aes128, sha-1 + des, md5 + aes128, md5 + des
let's same usm user capable of supporting these 4 combinations @ same time. now, when seek management console, want select combination of above 4 , snmp agent should work.
note: not want add together new usm users. want same user configured above 4 combinations @ same time.
usmuser user = new usmuser(new octetstring(m_usmuser), snmpauthenticationalgorithm, snmpauthenticationpassword, snmpprivacyalgorithm, snmpprivacypassword); usm.adduser(user.getsecurityname(), user.getlocalizationengineid(), user);
rather above, want user below.
usmuser user = new usmuser(new octetstring(m_usmuser), authmd5.id, snmpauthenticationpassword, privdes.id, snmpprivacypassword); usm.adduser(user.getsecurityname(), user.getlocalizationengineid(), user); user = new usmuser(new octetstring(m_usmuser), authmd5.id, snmpauthenticationpassword, privaes128.id, snmpprivacypassword); usm.adduser(user.getsecurityname(), user.getlocalizationengineid(), user); user = new usmuser(new octetstring(m_usmuser), authsha.id, snmpauthenticationpassword, privaes128.id, snmpprivacypassword); usm.adduser(user.getsecurityname(), user.getlocalizationengineid(), user); user = new usmuser(new octetstring(m_usmuser), authsha.id, snmpauthenticationpassword, privdes.id, snmpprivacypassword); usm.adduser(user.getsecurityname(), user.getlocalizationengineid(), user);
the snmpv3 standard not back upwards more 1 auth+priv combination per usm user within usm configuration defined rfc 3414. limit caused construction , indexing of usmusertable. however, snmp4j may defined more 1 usm instance per agent , assign each usm instance own usmusertable instance , register each of table instances within own snmpv3 context.
although work, might easier understand , implement using security protocol suffixes (or prefixes) in snmpv3 usernames "myuser.aes128" vs. "myuser.des", etc.
snmp4j
Comments
Post a Comment