RE: Key instead of password

"Mathew Bielejeski" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Wes;

Thanks for the information. The local key turned out to be what the device
was expecting.  For some reason I had downloaded version 5.1.4 instead of
the latest release and it didn't have the local key stuff in the session
structure.

-----Original Message-----
From: Wes Hardaker [mailto:[email protected]] 
Sent: Monday, May 08, 2006 6:58 PM
To: Mathew Bielejeski
Cc: [email protected]
Subject: Re: Key instead of password

>>>>> On Wed, 3 May 2006 11:29:16 -0700, "Mathew Bielejeski"
<[email protected]> said:

Mathew> I am working on updating a program I have to work with snmpv3.
Mathew> I have an snmpv3 capable device that has to be set up by
Mathew> inputting an MD5 key directly instead of creating one from a
Mathew> password.  As a simple test I set the MD5 key as
Mathew> 00112233445566778899aabbccddeeff, however I can't figure out
Mathew> how to send this key from my program to the device.  No matter
Mathew> what I try I get an Authentication Failure error.

Mathew> Here is what I have tried:

Mathew> Sending the key as a string

Mathew> Converting the string into 16 actual bytes and sending that as
Mathew> the key.

Mathew> Does anyone know what form the key is suppose to be in to work
Mathew> correctly?

First, before trying to do it in code you should try it on the command
line first...

use snmpget --defAuthLocalizedKey or --defAuthMasterKey for example.

Part of the problem you're likely having is that the session structure
you're filling in either needs to be given a master key or a localized
key.  I'm betting the device is asking for a localized key, but your
documentation should know that.  The session field is for a master
key, not a localized key.
-- 
Wes Hardaker
Sparta, Inc.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.