|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81623 Successive SNMPv3 credential attempts fail (with valid credentials)
Submitted: 2021-11-15 06:27 UTC Modified: -
From: mark dot unwin at gmail dot com Assigned:
Status: Open Package: SNMP related
PHP Version: Irrelevant OS: Ubuntu Mate 21.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mark dot unwin at gmail dot com
New email:
PHP Version: OS:


 [2021-11-15 06:27 UTC] mark dot unwin at gmail dot com
I have a network discovery application that takes an array of credentials and tests they work against SNMP devices. In this case, SNMPv3 devices. 

If I connect using a valid SNMPv3 credential set first in the array, things work as expected. 

If I connect using a bad set first in the array, the connection fails, as expected. 

If I connect using a valid SNMPv3 credential set second in the array (after the prior bad set), it fails.

This only seems to occur when using identical Security Names, but having otherwise different attributes.

Even if I unset the SNMP object in the loop each time, subsequent attempts to connect using valid credentials fail (as per above).

Test script:
Same code in SO question here -

Expected result:
Should be able to connect using differing credentials after the object is unset, but even better if the object doesn't need unsetting.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2022-12-24 09:07 UTC] Mitchell1988IVu at gmail dot com
BMC Discovery scans a variety of SNMP devices. When the scans are successful, these devices are usually modeled as Network Devices, SNMP Managed Devices, or Printers. However, it’s not uncommon to encounter problems when scanning these SNMP devices. Use the following troubleshooting sections to either resolve the problem or create a BMC Support case.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 10:01:27 2024 UTC