Skip to content

BUG: no PySnmpAuthError if Username pass without auth or key #38

@aversant

Description

@aversant

Describe the issue:

If UserName cred equal to device credential, but key or privacy not, client return empty data:

# ./noc snmp get --username User --address 10.1.10.1 1.3.6.1.2.1.1.1.0
Result {}

compare to snmpget - return error:

snmpget -v3  -l noAuthNoPriv -u User -On 10.1.10.1 1.3.6.1.2.1.1.1.0
Error in packet.
Reason: authorizationError (access denied to that object)

Reproduce the code example:

Error message:

Python version information

Python 3.11.5 (main, Dec 9 2024, 16:40:56) [GCC 12.2.0] on linux

Gufo SNMP version information

import gufo.snmp;print(gufo.snmp.version)
0.9.1

Operation system version

cat /etc/debian_version
12.8

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions