RE: KeyChange pbject type using encode_keychange

"Mike Ayers" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <83E753BE7B6A324ABB336245BAF1DAAC07F4AC8E@mailserver.metatv-ds.metatv.com>
> From: [email protected] 
> [mailto:[email protected]] On 
> Behalf Of Rahman Wali
> Sent: Friday, February 15, 2008 8:33 AM

> I am using net-snmp's snmpset command to set usmUserOwnAuthKeyChange. 
> 1. To compute the KeyChange for 
> usmUserAuthKeyChange/usmUserOwnAuthKeyChange: 
> # encode_keychange -t md5 -O 12345678 -N 87654321 -E 
> 0x80000a4c0431323334 
> e4e48c3aec5f9f71f7f766458c5f057b16f74052a70db9be346cf1cef0e59cd7 
> 2. I assumed that 32 octet is the random number and the rest 
> 32 octet is the key.

	You assume wrong.  That may be how things were before the encoding, but afterwards its all one big lump o'data.

> I choped 32 bytes (either from left or 
> from right) of the KeyChange 
> output and set userUsmOwnAuthKeyChange to that value using 
> snmpset command and then set the random number. The snmpset 
> goes through, But neither the old nor the new password works now. 

	Not surprising, since you sent it only part of the keychange object.  Next time send the whole thing.


	HTH,

Mike

-------------------------------------------------------------------------
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.