cancel
Showing results for 
Search instead for 
Did you mean: 

Portal SSO - Non SAP Java Applications

Former Member
0 Kudos

hi,

i am getting the following exception when configuring SSO

java.lang.Exception: MySapEvalLogonTicketEx failed: standard error= 5, ssf error= 0

version: SAPSSOEXT 2

portal version : SAP NW Portal 7.0 SP 10

os : Solaris

i believe the captioned standard error=5 signifies "Syntactically Invalid Ticket".

does anyone know how to solve this ?

regards,

santosh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

i will update you all with recent developments. i have tried executing the

SSO2Ticket.evalLogonTicket(ticket, path , null);

from the os

i have obtained the ticket data from the cookie content and passed it to the class.

I am able to fetch the user id ...

i do not understand where i am going wrong...

pls. guide me in resolving the issue.

rgds,

santosh malavade

Former Member
0 Kudos

Could you try with -

SSO2Ticket.evalLogonTicket(ticket, path , "");

Former Member
0 Kudos

I tried this option too. It is still not working.

Former Member
0 Kudos

To update you on this,

I am providing trace data

_________________________________________________________________________________________

root@appep log]# cat sapssoext.trc

-


trc file: "/var/log/sapssoext.trc", trc level: 3, release: "640"

-


[Thr 1109256512] MySapEvalLogonTicketEx was called.

[Thr 1109256512] Unconverted Ticket is the following: AjExMDAgABBwb3J0YWw6UDAwMTAxOTU5iAATYmFzaWNhdXRoZW50aWNhdGlvbgEACVAwMDEwMTk1OQIAAzAwMAMAA1BFUAQADDIwMDkwNDA5MDAyNwUABAAAAAgKAAlQMDAxMDE5NTn%2FARUwggERBgkqhkiG9w0BBwKgggECMIH%2FAgEBMQswCQYFKw4DAhoFADALBgkqhkiG9w0BBwExgd8wgdwCAQEwMTApMQswCQYDVQQGEwJJTjEMMAoGA1UEChMDQVBMMQwwCgYDVQQDEwNQRVACBGI6MncwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA5MDQwOTAwMjcyNFowIwYJKoZIhvcNAQkEMRYEFOsM!sTZllIiS2zmtMz7ExQj%2F5SiMAkGByqGSM44BAMELzAtAhQs0xPBckGjriuZyzTeAZ2OMs!l6AIVAMQOlHWaCNMO98o9bTu74s30UKDU

.[Thr 1109256512] Initialized variables...

[Thr 1109256512] Preparing InContext...

[Thr 1109256512] Ticket is the following: AjExMDAgABBwb3J0YWw6UDAwMTAxOTU5iAATYmFzaWNhdXRoZW50aWNhdGlvbgEACVAwMDEwMTk1OQIAAzAwMAMAA1BFUAQADDIwMDkwNDA5MDAyNwUABAAAAAgKAAlQMDAxMDE5NTn%2FARUwggERBgkqhkiG9w0BBwKgggECMIH%2FAgEBMQswCQYFKw4DAhoFADALBgkqhkiG9w0BBwExgd8wgdwCAQEwMTApMQswCQYDVQQGEwJJTjEMMAoGA1UEChMDQVBMMQwwCgYDVQQDEwNQRVACBGI6MncwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA5MDQwOTAwMjcyNFowIwYJKoZIhvcNAQkEMRYEFOsM!sTZllIiS2zmtMz7ExQj%2F5SiMAkGByqGSM44BAMELzAtAhQs0xPBckGjriuZyzTeAZ2OMs!l6AIVAMQOlHWaCNMO98o9bTu74s30UKDU

.[Thr 1109256512] Profile is the following: /home/pepadm/verify.pse

.[Thr 1109256512] Password is the following: (NULL)

[Thr 1109256512] Just before Validation...

[Thr 1109256512] Dump of InContext [ssoxxapi_mt.c 156]

[Thr 1109256512] 00000000 34 31 31 30 00 00 00 00 30 a3 1d 42 00 00 00 00 4110....0..B....

[Thr 1109256512] 00000010 60 fa d0 35 ab 2a 00 00 e0 a5 1d 42 00 00 00 00 `..5.*.....B....

[Thr 1109256512] 00000020 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

[Thr 1109256512] 00000030

[Thr 1109256512] Copies from InContext->Format: PKCS7 [ssoxxapi_mt.c 163]

[Thr 1109256512] Copies from InContext->pzcsProName: /home/pepadm/verify.pse [ssoxxapi_mt.c 166]

[Thr 1109256512] DecodeB64Len returns 0. iDecLength=384

[Thr 1109256512] Dump of Decoded ticket: [ssoxxapi_mt.c 188]

[Thr 1109256512] 00000000 02 31 31 30 30 20 00 10 70 6f 72 74 61 6c 3a 50 .1100 ..portal:P

[Thr 1109256512] 00000010 30 30 31 30 31 39 35 39 88 00 13 62 61 73 69 63 00101959...basic

[Thr 1109256512] 00000020 61 75 74 68 65 6e 74 69 63 61 74 69 6f 6e 01 00 authentication..

[Thr 1109256512] 00000030 09 50 30 30 31 30 31 39 35 39 02 00 03 30 30 30 .P00101959...000

[Thr 1109256512] 00000040 03 00 03 50 45 50 04 00 0c 32 30 30 39 30 34 30 ...PEP...2009040

[Thr 1109256512] 00000050 39 30 30 32 37 05 00 04 00 00 00 08 0a 00 09 50 90027..........P

[Thr 1109256512] 00000060 30 30 31 30 31 39 35 39 ff 01 15 30 82 01 11 06 00101959...0....

[Thr 1109256512] 00000070 09 2a 86 48 86 f7 0d 01 07 02 a0 82 01 02 30 81 .*.H..........0.

[Thr 1109256512] 00000080 ff 02 01 01 31 0b 30 09 06 05 2b 0e 03 02 1a 05 ....1.0...+.....

[Thr 1109256512] 00000090 00 30 0b 06 09 2a 86 48 86 f7 0d 01 07 01 31 81 .0...*.H......1.

[Thr 1109256512] 000000A0 df 30 81 dc 02 01 01 30 31 30 29 31 0b 30 09 06 .0.....010)1.0..

[Thr 1109256512] 000000B0 03 55 04 06 13 02 49 4e 31 0c 30 0a 06 03 55 04 .U....IN1.0...U.

[Thr 1109256512] 000000C0 0a 13 03 41 50 4c 31 0c 30 0a 06 03 55 04 03 13 ...APL1.0...U...

[Thr 1109256512] 000000D0 03 50 45 50 02 04 62 3a 32 77 30 09 06 05 2b 0e .PEP..b:2w0...+.

[Thr 1109256512] 000000E0 03 02 1a 05 00 a0 5d 30 18 06 09 2a 86 48 86 f7 ......]0...*.H..

[Thr 1109256512] 000000F0 0d 01 09 03 31 0b 06 09 2a 86 48 86 f7 0d 01 07 ....1...*.H.....

[Thr 1109256512] 00000100 01 30 1c 06 09 2a 86 48 86 f7 0d 01 09 05 31 0f .0...*.H......1.

[Thr 1109256512] 00000110 17 0d 30 39 30 34 30 39 30 30 32 37 32 34 5a 30 ..090409002724Z0

[Thr 1109256512] 00000120 23 06 09 2a 86 48 86 f7 0d 01 09 04 31 16 04 14 #..*.H......1...

[Thr 1109256512] 00000130 eb 0c fa c4 d9 96 52 22 4b 6c e6 b4 cc fb 13 14 ......R"Kl......

[Thr 1109256512] 00000140 23 ff 94 a2 30 09 06 07 2a 86 48 ce 38 04 03 04 #...0...*.H.8...

[Thr 1109256512] 00000150 2f 30 2d 02 14 2c d3 13 c1 72 41 a3 ae 2b 99 cb /0-..,...rA..+..

[Thr 1109256512] 00000160 34 de 01 9d 8e 32 cf a5 e8 02 15 00 c4 0e 94 75 4....2.........u

[Thr 1109256512] 00000170 9a 08 d3 0e f7 ca 3d 6d 3b bb e2 cd f4 50 a0 d4 ......=m;....P..

[Thr 1109256512] 00000180

[Thr 1109256512] Read version.

[Thr 1109256512] Read Codepage.

[Thr 1109256512] Read InfoUnit (0x20).

[Thr 1109256512] Read length (16).

[Thr 1109256512] Read contents.

[Thr 1109256512] Read InfoUnit (0x88).

[Thr 1109256512] Read length (19).

[Thr 1109256512] Read contents.

[Thr 1109256512] Read InfoUnit (0x01).

[Thr 1109256512] Read length (9).

[Thr 1109256512] Read contents.

[Thr 1109256512] Read InfoUnit (0x02).

[Thr 1109256512] Read length (3).

[Thr 1109256512] Read contents.

[Thr 1109256512] Read InfoUnit (0x03).

[Thr 1109256512] Read length (3).

[Thr 1109256512] Read contents.

[Thr 1109256512] Read InfoUnit (0x04).

[Thr 1109256512] Read length (12).

[Thr 1109256512] Read contents.

[Thr 1109256512] Read InfoUnit (0x05).

[Thr 1109256512] Read length (4).

[Thr 1109256512] Read contents.

[Thr 1109256512] Read InfoUnit (0x0A).

[Thr 1109256512] Read length (9).

[Thr 1109256512] Read contents.

[Thr 1109256512] Read InfoUnit (0xFF).

[Thr 1109256512] ParseTicket returns 0. [ssoxxapi_mt.c 200]

[Thr 1109256512] Bytes processed: 105 [ssoxxapi_mt.c 203]

[Thr 1109256512] Argument Dump for ticket verification:

[Thr 1109256512] Content byte stream:

[Thr 1109256512] 00000000 02 31 31 30 30 20 00 10 70 6f 72 74 61 6c 3a 50 .1100 ..portal:P

[Thr 1109256512] 00000010 30 30 31 30 31 39 35 39 88 00 13 62 61 73 69 63 00101959...basic

[Thr 1109256512] 00000020 61 75 74 68 65 6e 74 69 63 61 74 69 6f 6e 01 00 authentication..

[Thr 1109256512] 00000030 09 50 30 30 31 30 31 39 35 39 02 00 03 30 30 30 .P00101959...000

[Thr 1109256512] 00000040 03 00 03 50 45 50 04 00 0c 32 30 30 39 30 34 30 ...PEP...2009040

[Thr 1109256512] 00000050 39 30 30 32 37 05 00 04 00 00 00 08 0a 00 09 50 90027..........P

[Thr 1109256512] 00000060 30 30 31 30 31 39 35 39 00101959

[Thr 1109256512]

Signature byte stream:

[Thr 1109256512] 00000000 30 82 01 11 06 09 2a 86 48 86 f7 0d 01 07 02 a0 0.....*.H.......

[Thr 1109256512] 00000010 82 01 02 30 81 ff 02 01 01 31 0b 30 09 06 05 2b ...0.....1.0...+

[Thr 1109256512] 00000020 0e 03 02 1a 05 00 30 0b 06 09 2a 86 48 86 f7 0d ......0...*.H...

[Thr 1109256512] 00000030 01 07 01 31 81 df 30 81 dc 02 01 01 30 31 30 29 ...1..0.....010)

[Thr 1109256512] 00000040 31 0b 30 09 06 03 55 04 06 13 02 49 4e 31 0c 30 1.0...U....IN1.0

[Thr 1109256512] 00000050 0a 06 03 55 04 0a 13 03 41 50 4c 31 0c 30 0a 06 ...U....APL1.0..

[Thr 1109256512] 00000060 03 55 04 03 13 03 50 45 50 02 04 62 3a 32 77 30 .U....PEP..b:2w0

[Thr 1109256512] 00000070 09 06 05 2b 0e 03 02 1a 05 00 a0 5d 30 18 06 09 ...+.......]0...

[Thr 1109256512] 00000080 2a 86 48 86 f7 0d 01 09 03 31 0b 06 09 2a 86 48 .H......1....H

[Thr 1109256512] 00000090 86 f7 0d 01 07 01 30 1c 06 09 2a 86 48 86 f7 0d ......0...*.H...

[Thr 1109256512] 000000A0 01 09 05 31 0f 17 0d 30 39 30 34 30 39 30 30 32 ...1...090409002

[Thr 1109256512] 000000B0 37 32 34 5a 30 23 06 09 2a 86 48 86 f7 0d 01 09 724Z0#..*.H.....

[Thr 1109256512] 000000C0 04 31 16 04 14 eb 0c fa c4 d9 96 52 22 4b 6c e6 .1.........R"Kl.

[Thr 1109256512] 000000D0 b4 cc fb 13 14 23 ff 94 a2 30 09 06 07 2a 86 48 .....#...0...*.H

[Thr 1109256512] 000000E0 ce 38 04 03 04 2f 30 2d 02 14 2c d3 13 c1 72 41 .8.../0-..,...rA

[Thr 1109256512] 000000F0 a3 ae 2b 99 cb 34 de 01 9d 8e 32 cf a5 e8 02 15 ..+..4....2.....

[Thr 1109256512] 00000100 00 c4 0e 94 75 9a 08 d3 0e f7 ca 3d 6d 3b bb e2 ....u......=m;..

[Thr 1109256512] 00000110 cd f4 50 a0 d4 ..P..

[Thr 1109256512] Encoded content byte stream:

[Thr 1109256512] 00000000 30 77 06 09 2a 86 48 86 f7 0d 01 07 01 a0 6a 04 0w..*.H.......j.

[Thr 1109256512] 00000010 68 02 31 31 30 30 20 00 10 70 6f 72 74 61 6c 3a h.1100 ..portal:

[Thr 1109256512] 00000020 50 30 30 31 30 31 39 35 39 88 00 13 62 61 73 69 P00101959...basi

[Thr 1109256512] 00000030 63 61 75 74 68 65 6e 74 69 63 61 74 69 6f 6e 01 cauthentication.

[Thr 1109256512] 00000040 00 09 50 30 30 31 30 31 39 35 39 02 00 03 30 30 ..P00101959...00

[Thr 1109256512] 00000050 30 03 00 03 50 45 50 04 00 0c 32 30 30 39 30 34 0...PEP...200904

[Thr 1109256512] 00000060 30 39 30 30 32 37 05 00 04 00 00 00 08 0a 00 09 090027..........

[Thr 1109256512] 00000070 50 30 30 31 30 31 39 35 39 P00101959

[Thr 1109256512] Verify returns 0 [ssoxxsgn_mt.c 189]

[Thr 1109256512] Certificate is:

[Thr 1109256512] 00000000 30 82 02 7e 30 82 02 69 a0 03 02 01 02 02 04 62 0..~0..i.......b

[Thr 1109256512] 00000010 3a 32 77 30 09 06 07 2a 86 48 ce 38 04 03 30 29 :2w0...*.H.8..0)

[Thr 1109256512] 00000020 31 0b 30 09 06 03 55 04 06 13 02 49 4e 31 0c 30 1.0...U....IN1.0

[Thr 1109256512] 00000030 0a 06 03 55 04 0a 13 03 41 50 4c 31 0c 30 0a 06 ...U....APL1.0..

[Thr 1109256512] 00000040 03 55 04 03 13 03 50 45 50 30 1e 17 0d 30 38 31 .U....PEP0...081

[Thr 1109256512] 00000050 32 31 39 30 34 30 32 30 30 5a 17 0d 33 37 31 32 219040200Z..3712

[Thr 1109256512] 00000060 31 39 30 33 33 38 34 30 5a 30 29 31 0b 30 09 06 19033840Z0)1.0..

[Thr 1109256512] 00000070 03 55 04 06 13 02 49 4e 31 0c 30 0a 06 03 55 04 .U....IN1.0...U.

[Thr 1109256512] 00000080 0a 13 03 41 50 4c 31 0c 30 0a 06 03 55 04 03 13 ...APL1.0...U...

[Thr 1109256512] 00000090 03 50 45 50 30 82 01 b6 30 82 01 2b 06 07 2a 86 .PEP0...0..+..*.

[Thr 1109256512] 000000A0 48 ce 38 04 01 30 82 01 1e 02 81 81 00 82 7d d4 H.8..0........}.

[Thr 1109256512] 000000B0 9c a2 05 69 84 e9 83 71 b1 34 0d 5d 71 83 92 85 ...i...q.4.]q...

[Thr 1109256512] 000000C0 b2 5a ca a3 82 d7 ac 38 6e 94 40 84 3f 0a 46 7a .Z.....8n.@.?.Fz

[Thr 1109256512] 000000D0 a8 75 a8 c1 ca 3b 70 ba 6a 97 07 12 f6 b1 99 ed .u...;p.j.......

[Thr 1109256512] 000000E0 3e ec 53 13 f3 94 0a 67 bb d6 9f 38 72 29 61 ab >.S....g...8r)a.

[Thr 1109256512] 000000F0 02 3d 17 a1 33 3c 52 23 5d 9f b7 d1 0e 95 e3 a5 .=..3<R#].......

[Thr 1109256512] 00000100 5e f9 b0 4f c7 c9 20 c5 72 da 7a c3 d5 0f 24 0d ^..O.. .r.z...$.

[Thr 1109256512] 00000110 bb 8e 54 da 9e bb 70 21 11 c5 35 82 e5 35 85 2e ..T...p!..5..5..

[Thr 1109256512] 00000120 9f 59 39 79 b3 32 50 c8 86 83 96 19 17 02 15 00 .Y9y.2P.........

[Thr 1109256512] 00000130 fa 50 79 da fa 3f 3a b1 e8 0a 6d f5 bd 16 f2 24 .Py..?:...m....$

[Thr 1109256512] 00000140 d8 f8 d7 1b 02 81 80 4f bd f5 2e 33 04 f0 51 c1 .......O...3..Q.

[Thr 1109256512] 00000150 7c a5 5c 93 81 b5 c1 7d 4c 20 50 76 85 34 50 cf |.\....}L Pv.4P.

[Thr 1109256512] 00000160 d9 fc 72 b2 e1 b2 b1 6f a0 10 48 b8 ff 17 e7 a9 ..r....o..H.....

[Thr 1109256512] 00000170 0a e1 e0 18 05 3e 34 d9 d5 61 df 71 4c c8 dc 92 .....>4..a.qL...

[Thr 1109256512] 00000180 b1 51 b5 df 66 59 70 6b 5e 57 c3 19 a2 d6 58 3b .Q..fYpk^W....X;

[Thr 1109256512] 00000190 7d 32 d2 e9 e1 f1 66 3e aa ac 46 0d cd 4e 67 70 }2....f>..F..Ngp

[Thr 1109256512] 000001A0 36 f7 f9 be 0b 2e 16 a0 5d 69 5d 5b 81 13 a9 03 6.......]i][....

[Thr 1109256512] 000001B0 cb 38 63 56 1a bd 36 4a 5d 6c 15 66 17 fa 10 a3 .8cV..6J]l.f....

[Thr 1109256512] 000001C0 20 99 e1 d2 34 77 13 03 81 84 00 02 81 80 38 80 ...4w........8.

[Thr 1109256512] 000001D0 07 ad cc a7 5b 9f 47 08 9a 9e 1c 87 cf 6d 8f 95 ....[.G......m..

[Thr 1109256512] 000001E0 25 3a 10 eb e3 27 f0 63 ea 1a 61 e7 74 91 85 f5 %:...'.c..a.t...

[Thr 1109256512] 000001F0 93 3c 46 5c 97 37 61 fa 5d e8 ce e5 6c db 8b d9 .<F\.7a.]...l...

[Thr 1109256512] 00000200 2c a4 52 c8 ac 3a e7 20 4f 4f d4 b3 18 9f ce 1d ,.R..:. OO......

[Thr 1109256512] 00000210 7b 3f e5 ee 7c ff 4f 87 18 09 5f 98 3d fa 5f 59 {?..|.O..._.=._Y

[Thr 1109256512] 00000220 d6 82 0d 14 52 1d e1 1f 7a 12 31 8a 69 78 fa 91 ....R...z.1.ix..

[Thr 1109256512] 00000230 86 f1 56 c3 65 e5 2b 8c 90 06 4a 29 59 98 93 7e ..V.e.+...J)Y..~

[Thr 1109256512] 00000240 fd ce c0 3d d2 be 31 c9 e6 0c 2d ce b1 59 a3 21 ...=..1...-..Y.!

[Thr 1109256512] 00000250 30 1f 30 1d 06 03 55 1d 0e 04 16 04 14 e9 26 6e 0.0...U.......&n

[Thr 1109256512] 00000260 fa 2f ce 64 8b d1 7f d4 bc f4 4b 5a 42 3e 78 2c ./.d......KZB>x,

[Thr 1109256512] 00000270 c0 30 0c 06 08 2a 86 48 86 f7 0d 02 05 05 00 03 .0...*.H........

[Thr 1109256512] 00000280 01 00 ..

[Thr 1109256512] ValidateTicket returns 0. [ssoxxapi_mt.c 226]

[Thr 1109256512] *** ERROR => Couldn't convert cookie content. rc = -2 [ssoxxext_mt. 1426]

[Thr 1109256512] *** ERROR => Couldn't convert cookie content. rc = -2 [ssoxxext_mt. 1426]

[Thr 1109256512] *** ERROR => Couldn't convert cookie content. rc = -2 [ssoxxext_mt. 1426]

[Thr 1109256512] *** ERROR => Couldn't convert cookie content. rc = -2 [ssoxxext_mt. 1426]

[Thr 1109256512] *** ERROR => Couldn't convert cookie content. rc = -2 [ssoxxext_mt. 1426]

[Thr 1109256512] *** ERROR => Couldn't convert cookie content. rc = -2 [ssoxxext_mt. 1426]

[Thr 1109256512] Validation succeeded...

[Thr 1109256512] *** ERROR => invalid format: ticket creation date (len=0) [ssoxxlnk_mt. 272]

[Thr 1109256512] *** ERROR => ... but Ticket expired. [ssoxxext_mt. 397]

[Thr 1109256512] *** ERROR => MySapEvalLogonTicketEx returns 5. [ssoxxext_mt. 697]

[Thr 1109256512] End of function MySapEvalLogonTicketEx.

_________________________________________________________________________________________

Rgds,

Santosh Malavade