mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[snmp] Upgrade SNMP4J and fix AUTH_NO_PRIV (#16801)
Signed-off-by: Jan N. Klug <github@klug.nrw> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
a00ad980fd
commit
9259b94cee
@ -16,9 +16,9 @@
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.servicemix.bundles</groupId>
|
||||
<artifactId>org.apache.servicemix.bundles.snmp4j</artifactId>
|
||||
<version>2.6.3_1</version>
|
||||
<groupId>org.snmp4j</groupId>
|
||||
<artifactId>snmp4j</artifactId>
|
||||
<version>2.8.6</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -166,8 +166,10 @@ public class SnmpServiceImpl implements SnmpService {
|
||||
@Override
|
||||
public void addUser(String userName, SnmpAuthProtocol snmpAuthProtocol, @Nullable String authPassphrase,
|
||||
SnmpPrivProtocol snmpPrivProtocol, @Nullable String privPassphrase, byte[] engineId) {
|
||||
UsmUser usmUser = new UsmUser(new OctetString(userName), snmpAuthProtocol.getOid(),
|
||||
authPassphrase != null ? new OctetString(authPassphrase) : null, snmpPrivProtocol.getOid(),
|
||||
UsmUser usmUser = new UsmUser(new OctetString(userName),
|
||||
authPassphrase != null ? snmpAuthProtocol.getOid() : null,
|
||||
authPassphrase != null ? new OctetString(authPassphrase) : null,
|
||||
privPassphrase != null ? snmpPrivProtocol.getOid() : null,
|
||||
privPassphrase != null ? new OctetString(privPassphrase) : null);
|
||||
OctetString securityNameOctets = new OctetString(userName);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user