Bug #81623 [NEW]: Successive SNMPv3 credential attempts fail (with valid credentials)
From: mark dot unwin at gmail dot com
Operating system: Ubuntu Mate 21.04
PHP version: Irrelevant
Package: SNMP related
Bug Type: Bug
Bug description:Successive SNMPv3 credential attempts fail (with valid credentials)
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=81623&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81623&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81623&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81623&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81623&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81623&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81623&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81623&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81623&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81623&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81623&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81623&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81623&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81623&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81623&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81623&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81623&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81623&r=mysqlcfg
Thread (5 messages)
- mark dot unwin at gmail dot com