php.net |  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: 2024-07-28 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: mark dot unwin at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: SNMP related
PHP Version: Irrelevant OS: Ubuntu Mate 21.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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 - 

https://stackoverflow.com/questions/69491850/php-snmpv3-credentials-test-loop-failing

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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2024-07-19 20:01 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2024-07-19 20:01 UTC] cmb@php.net
Is that still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions>
 [2024-07-28 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC