Bug #81623 [Com]: Successive SNMPv3 credential attempts fail (with valid credentials)

From: Date: Thu, 03 Mar 2022 12:04:46 +0000
Subject: Bug #81623 [Com]: Successive SNMPv3 credential attempts fail (with valid credentials)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240137@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81623&edit=1

 ID:                 81623
 Comment by:         gavbjk5643 at protonmail dot com
 Reported by:        mark dot unwin at gmail dot com
 Summary:            Successive SNMPv3 credential attempts fail (with
                     valid credentials)
 Status:             Open
 Type:               Bug
 Package:            SNMP related
 Operating System:   Ubuntu Mate 21.04
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Thanks

https://altosaxo.net/products/cracker-band-t-shirt-men

https://altosaxo.net/products/eluveitie-t-shirt-men

https://altosaxo.net/products/konvent-t-shirt-men

https://altosaxo.net/products/mephorash-t-shirt-men

https://altosaxo.net/products/ad-inferna-t-shirt-men


Previous Comments:
------------------------------------------------------------------------
[2022-03-03 12:03:53] czxrd32 at protonmail dot com

Thanks 

https://altosaxo.net/products/crisix-t-shirt-men

https://altosaxo.net/products/einherjer-t-shirt-men

https://altosaxo.net/products/sound-of-ceres-t-shirt-men

https://altosaxo.net/products/wardruna-t-shirt-men

https://altosaxo.net/products/angelus-apatrida-t-shirt-men

------------------------------------------------------------------------
[2021-11-15 06:27:43] 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.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=81623&edit=1


Thread (5 messages)

« previous php.bugs (#240137) next »