#44193 [Opn->Fbk]: snmp v3 doesn't work
| From: | jani@php.net | Date: | Thu, 23 Oct 2008 12:30:07 +0000 |
| Subject: | #44193 [Opn->Fbk]: snmp v3 doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130003@lists.php.net to get a copy of this message | ||
ID: 44193
Updated by: jani@php.net
Reported By: mavezeau at colubris dot com
-Status: Open
+Status: Feedback
Bug Type: SNMP related
Operating System: Mandriva 2005/linux
PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2008-02-20 21:23:28] mavezeau at colubris dot com
Description:
------------
I try to make a query with snmp v3 and I have an error: "snmp3_walk():
An error occurred" or "snmp3_walk(): No response from 192.168.130.124".
If I execute a query with net-snmp 5.4.1 the query is ok. If I execute
the similar query with php I have those errors.
Reproduce code:
---------------
AuthNoPriv
net-snmp Query:
snmpwalk -v 3 -l authNoPriv -a MD5 -A jesuisuntest -u test5
192.168.130.124
it Works!
Php snmp
snmp3_walk('192.168.130.124','test5','authNoPriv','MD5','jesuisuntest','','','');
Error !
noAuthNoPriv
net-snmp query:
snmpwalk -v 3 -l noAuthNoPriv -u test 192.168.130.124
it works!
PHP snmp
snmp3_walk('192.168.130.124','test','noAuthNoPriv','','','','','');
error(snmp3_walk(): Invalid authentication protocol)
if use the default
snmp3_walk('192.168.130.124','test','noAuthNoPriv','MD5','','','','');
error(snmp3_walk(): Could not generate key for authentication pass
phrase: MD5)
Expected result:
----------------
Similar return value than smnp v2c
Actual result:
--------------
all method make an error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44193&edit=1