snmpv3 authorization error

Steve McCarthy <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
 
I have been trying to set up a snmpV3 user configuration. So a question you have no doubt been asked millions of times before.
 
I have added snmp master agent code to my embedded code, so I have not extended the snmp agent, nor am I using agentx. I run init_agent, my MIB inits, init_snmp, init_master_agent, snmp_store and then loop running agent_check_and_process to process snmp requests. This works fine.
As our setup has a read-only file system apart from one directory, I have used set_configuration_directory and set_persistent_directory to set up snmpd.conf files.
 
I then added rwuser steve1 noauth and rwuser steve3 auth to my snmpd.conf file that also had rocommunity and rwcommunity settings. I then added createUser stevev1 and createUser stevev3 MD5 "my_password" DES to my persistent snmpd.conf file.
 
When I run my agent I see the persistent createUser lines disappear and the encrypted data appear as expected.
 
If I do a 
snmpget –v 3 –u steve1 –l noAuthNoPriv –A my_password –a MD5 targetIP Objectname 
on the noauth user, I successfully get the response data. 
 
If I do a 
snmpget –v 3 –u steve3 –l noAuthNoPriv –A my_password –a MD5 targetIP Objectname 
on the auth user I get AuthorizationError (access denied to the object)
OR
snmpget –v 3 –u steve3 –l AuthNoPriv –A my_password –a MD5 targetIP Objectname 
on the auth user I get Authentication failure (incorrect password, community e.t.c)
 
If I do a 
snmpget –v 3 –u steve –l noAuthNoPriv –A my_password –a MD5 targetIP Objectname 
I get Unknown user name as expected.
 
So I am a little confused, my user names are obviously being registered/remembered, but my password apparently is not.
Do you know why this might be happening from the limited info I have given above?
 
In my standalone design, do I also need to run some init functions for user data mib modules?
 
Regards,
Steve


      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.