Pijush Das created NIFI-15929:
---------------------------------

             Summary: Introduce Engine Id Check in SNMP Listener for SNMP v3
                 Key: NIFI-15929
                 URL: https://issues.apache.org/jira/browse/NIFI-15929
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: Pijush Das


Hi,
 
When we use the org.apache.nifi.snmp.processors.ListenTrapSNMP processor, we 
need to use different engine Ids. 
 
But the source code does not take into account the engine id. It only uses the 
security name,
 
auth protocol, auth password, priv protocol and priv password.  Please check 
the below.
 
 
 
 
https://github.com/apache/nifi/blob/rel/nifi-2.8.0/nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/utils/UsmUserDeserializer.java
 
 
 
 
The 
 
public UsmUser(OctetString securityName,
 
 OID authenticationProtocol,
 
 OctetString authenticationPassphrase,
 
 OID privacyProtocol,
 
 OctetString privacyPassphrase)
 
 
 
 
constructor does not take into account the engine id.
 
Instead, we the below constructor has to be used and the same has to be used in 
Usm.
 
 
 
 
 
 
 
 public UsmUser(OctetString securityName,
 
 OID authenticationProtocol,
 
 OctetString authenticationPassphrase,
 
 OID privacyProtocol,
 
 OctetString privacyPassphrase,
 
 OctetString localizationEngineID)
 
 
 
 
 
 
 
Thanks
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to