|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44193 snmp v3 noAuthNoPriv doesn't work
Submitted: 2008-02-20 21:23 UTC Modified: 2012-02-25 09:40 UTC
Avg. Score:4.4 ± 0.7
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:2 (50.0%)
From: mavezeau at colubris dot com Assigned: lytboris
Status: No Feedback Package: SNMP related
PHP Version: 5.2CVS-2008-10-27 OS: Mandriva 2005/linux
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-02-20 21:23 UTC] mavezeau at colubris dot com
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". 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:
net-snmp Query:
snmpwalk -v 3 -l authNoPriv -a MD5 -A jesuisuntest  -u test5
it Works!

Php snmp
Error !

net-snmp query:
snmpwalk -v 3 -l noAuthNoPriv -u test
it works!

PHP snmp
error(snmp3_walk(): Invalid authentication protocol)
if use the default

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-27 16:33 UTC] mavezeau at colubris dot com
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:
I have this error "error(snmp3_walk(): Could not generate key for authentication pass phrase: MD5)" 

if I try:
I have this error "Invalid authenfication protocol:"
 [2009-09-08 21:21 UTC] larryjadams at comcast dot net
That's not quite it.  That section of the code simply needs to be finished, let alone be documented.
 [2011-01-31 13:03 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: lytboris
 [2011-01-31 13:03 UTC]
Please try using this snapshot:
For Windows:

There is full support for SNMPv3 (with contextName and EngineID) in OO API available in trunk. It needs to be documented though.
 [2012-02-25 09:40 UTC]
-Status: Feedback +Status: No Feedback
 [2012-02-25 09:40 UTC]
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.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sat Nov 28 00:01:33 2015 UTC