[AGENT++] authPriv mode problem

Karl Abicht karl at abicht.info
Fri Jun 4 12:57:21 CEST 2004


Hi,

I've a problem using the authPriv mode.

I've written my own agent implementation, which is similar to the
'static_table' sample. I use the MG-SOFT MIB Browser.
It seems that there is a problem with the decryption of the message.

See log output below:


++ AGENT++: data received from 10.55.123.44 port 4434.
30 7E 02 01  03 30 0F 02  02 02 35 02  03 00 FF F0
04 01 07 02  01 03 04 36  30 34 04 0D  80 00 13 70
05 6D 61 69  64 33 30 34  34 02 01 01  02 02 07 89
04 04 70 61  75 6C 04 0C  E8 E9 76 92  04 5B C7 DA
47 E8 84 2D  04 08 00 00  00 C8 00 00  00 21 04 30
2D E0 DC 70  43 B3 D6 19  80 DD A5 70  DC 81 C8 F7
15 01 F8 9B  DC D2 3A 4E  2B A8 AC E3  1D 30 DF E2
E6 03 62 46  3B 56 06 54  65 2F FB FE  71 9F B8 0B

mp is parsing incoming message:
Parsed length(7b), version(0x3)
Parsed HeaderData: globalDataLength(0x0), msg_id(0x235),
msg_max_size(0xfff0), msg_flags(0x7), msg_security_model(0x3)
Parsed msgdata length(0x32), msgSecurityParameters length(0x36)
Parsed securityParametersLength = 0x34
Parsed securityEngineID, length = 0xd
Parsed engineBoots(0x789), engineTime(0x1)
Parsed usmUserName length(0x4) msgAuthenticationParameters length(0xc)
msgPrivacyParameters length(0x8)
USM::get_user: user (paul) engine_id (  80 00 13 70 05 6D 61 69 64 33 30 34
34             ...p.maid3044
)
MD5 authentication OK.
USMTimeTable::check_time: TimeWindowCheck for engine_id (  80 00 13 70 05 6D
61 69 64 33 30 34 34             ...p.maid3044
), boot (1), time(1929)
check_time: time ok (authoritative)
Decryption error detected
mp: error while executing USM::process_msg
ErrorCode is 1406
MpCache: adding remote entry[0], msg_id = 0x235, reqID = 0x0
v3MP::send_report: Sending report message.
ASN parse error (we can't support data lengths that long)

Parse error: Wrong header in scoped_pdu.
mp: Error while trying to parse  scopedPDU!
pdu->reqid = 0x0
Looking up cache
v3MP::Cache::get_entry: searching for remote msg_id 0x235
v3MP::Cache::get_entry: found entry[0]
SecurityEngineID:   80 00 13 70 05 6D 61 69 64 33 30 34 34            
...p.maid3044
, securityName: paul
securityLevel: 1
contextEngineID: , contextName:
Coding contextEngineID, length(0x0), contextName, length(0x0)
Coding sequence (scopedPDU), length = 0x22
Coding msgID(0x235), maxMessageSize(0x1000), msgFlags(0x0),
securityModel(0x3)
Coding sequence (headerdata), length = 0xe
Coding octstr sp.msgAuthoritativeEngineID, length = 0xd
Coding int sp.msgAuthoritativeEngineBoots = 0x0
Coding int sp.msgAuthoritativeEngineTime = 0x0
Coding octstr sp.msgUserName, length = 0x4
Coding octstr sp.msgAu..Para.. , length = 0x0
Coding octstr sp.msgPr..Para.. , length = 0x0
Coding sequence (securityPar), length = 0x1f
Coding int snmpVersion = 0x3
Coding octstr securityParameter, length = 0x21
Coding sequence (wholeMsg), length = 0x5a
v3MP finished OK.

-- 
Dipl.-Ing. Karl Abicht
Eichenweg 11
25582 Hohenaspe

mailto: karl at abicht.net
phone: +49 4893 373115
mobile: +49 172 4566432
site: http://www.abicht.net



-- 
Dipl.-Ing. Karl Abicht
Eichenweg 11
25582 Hohenaspe

mailto: karl at abicht.net
phone: +49 4893 373115
mobile: +49 172 4566432
site: http://www.abicht.net



-- 
Dipl.-Ing. Karl Abicht
Eichenweg 11
25582 Hohenaspe

mailto: karl at abicht.net
phone: +49 4893 373115
mobile: +49 172 4566432
site: http://www.abicht.net




More information about the AGENTPP mailing list