Edit report at https://bugs.php.net/bug.php?id=44193&edit=1
ID: 44193 Updated by: lytbo...@php.net Reported by: mavezeau at colubris dot com Summary: snmp v3 noAuthNoPriv doesn't work -Status: Feedback +Status: No Feedback Type: Bug Package: SNMP related Operating System: Mandriva 2005/linux PHP Version: 5.2CVS-2008-10-27 Assigned To: lytboris Block user comment: N Private report: N New Comment: 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 "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2011-01-31 13:03:19] lytbo...@php.net Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ There is full support for SNMPv3 (with contextName and EngineID) in OO API available in trunk. It needs to be documented though. ------------------------------------------------------------------------ [2009-09-08 21:21:55] larryjadams at comcast dot net That's not quite it. That section of the code simply needs to be finished, let alone be documented. ------------------------------------------------------------------------ [2008-10-27 16:33:50] mavezeau at colubris dot com Now, Some parts work. The security level AuthNoPriv and AuthPriv work but noAuthNoPriv doesn't works because php doesn't accept null or '' to auth_protocol and priv_protocol. I think this fix is simple the snmp v3 with noAuthNopriv is very similar of snmp v2c. if I try: snmp3_walk('192.168.130.124','test','noAuthNoPriv','MD5','','','',''); I have this error "error(snmp3_walk(): Could not generate key for authentication pass phrase: MD5)" if I try: snmp3_walk('192.168.130.124','test','noAuthNoPriv',null,null,null,null,''); or snmp3_walk('192.168.130.124','test','noAuthNoPriv','',null,null,null,''); I have this error "Invalid authenfication protocol:" ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=44193&edit=1