From: mavezeau at colubris dot com
Operating system: Mandriva 2005/linux
PHP version: 5.2.5
PHP Bug Type: SNMP related
Bug description: snmp v3 doesn't work
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 bug report at http://bugs.php.net/?id=44193&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44193&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44193&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44193&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44193&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44193&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44193&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44193&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44193&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44193&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44193&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44193&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44193&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44193&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44193&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44193&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44193&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44193&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44193&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44193&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44193&r=mysqlcfg