On Jul 7, 2008, at 9:42 AM, Daniel Stutz wrote:

Thanks for the help. I have switched to a patched server now.
The converter fails now on the next pdu. I can't find the

The type should be:

responseValue ::= SEQUENCE {
 eventType INTEGER,
 resultCode INTEGER,
 eventData OCTET STRING OPTIONAL }

Looking at the data you got that should be

  eventData [APPLICATION 3] OCTET STRING OPTIONAL}

and eventData has the following structure:
generalEventData ::= SEQUENCE {
  dstime INTEGER,
  dstime [1] INTEGER,

  milliseconds INTEGER,
  milliseconds [2] INTEGER,

  curProcess INTEGER,

  curProcess [3] INTEGER,

etc...

Graham.


  verb INTEGER,
  perpetratorDN OCTET STRING,
  integerValues SEQUENCE OF INTEGER,
  stringValues SEQUENCE OF OCTET STRING }

Decoding the following data as responseValue fails and I can't see why:
30 84 00 00 00 65 02 01 64 02 01 00 63 84 00 00 0....e..d...c...
00 59 81 04 48 75 9F AA 82 02 00 89 83 01 AA 84 .Y..Hu..........
04 AB 63 1B A0 85 1D 63 6E 3D 76 73 6C 65 73 31 ..c....cn=vsles1
2D 69 31 2C 6F 75 3D 72 65 73 6F 75 72 63 65 2C -i1,ou=resource,
6F 3D 71 61 86 84 00 00 00 06 02 01 00 02 01 FF o=qa............
A7 84 00 00 00 15 04 04 6F 3D 71 61 04 0D 63 6E ........o=qa..cn
3D 61 64 6D 69 6E 2C 6F 3D 71 61 __ __ __ __ __ =admin,o=qa

0000  101: SEQUENCE {
0006    1:   INTEGER = 100
0009    1:   INTEGER = 0
000C   89:   [APPLICATION 3] {
0012    4:     [CONTEXT 1]
0014     :       48 75 9F AA __ __ __ __ __ __ __ __ __ __ __ __ Hu..
0018    2:     [CONTEXT 2]
001A     :       00 89 __ __ __ __ __ __ __ __ __ __ __ __ __ __ ..
001C    1:     [CONTEXT 3]
001E     :       AA __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ .
001F    4:     [CONTEXT 4]
0021     :       AB 63 1B A0 __ __ __ __ __ __ __ __ __ __ __ __ .c..
0025   29:     [CONTEXT 5]
0027 : 63 6E 3D 76 73 6C 65 73 31 2D 69 31 2C 6F 75 3D cn=vsles1-i1,ou= 0037 : 72 65 73 6F 75 72 63 65 2C 6F 3D 71 61 __ __ __ resource,o=qa
0044    6:     [CONTEXT 6]
004A : 02 01 00 02 01 FF __ __ __ __ __ __ __ __ __ __ ......
0050   21:     [CONTEXT 7] {
0056    4:       STRING = 'o=qa'
005C   13:       STRING = 'cn=admin,o=qa'
006B     :     }
006B     :   }
006B     : }
decode error 12 107 at /usr/lib/perl5/vendor_perl/5.8.8/Convert/ASN1/ _decode.pm line 233, <DATA> line 228.


Btw: Is there a more appropriate place for asking questions about Convert::ASN1?

Thank you.

Kind regards,
Daniel


Reply via email to