1

我正在尝试按照 SAP 提供的示例在 .NET 应用程序中解析 SAP Login Ticket(我从 MYSAPSSO2 cookie 获取票证字符串)。两者sapssoext.dllsapsecu.dll都放在 System32 文件夹中,但我收到一个错误,编号为 9。

这是票证字符串

AjExMDAgAA1wb3J0YWw6QVRJQUFNiAATYmFzaWNhdXRoZW50aWNhdGlvbgEABkFUSUFBTQIAAzAwMAMAA1BNRAQADDIwMTMwMTA3MTAzNAUABAAAAAgKAAZBVElBQU3/AQUwggEBBgkqhkiG9w0BBwKggfMwgfACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0DCBzQIBATAiMB0xDDAKBgNVBAMTA1BNRDENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTMwMTA3MTAzNDE1WjAjBgkqhkiG9w0BCQQxFgQUYsJ!74Po!/9lrPqttjZXqcfBSTAwCQYHKoZIzjgEAwQvMC0CFD55F60sUc2gyG0gZpbdtLqJ6MBkAhUAiQ87p3inLvWchkphT5Lfl7PJ1mA

这是 trace.txt 文件中记录的详细信息

---------------------------------------------------
trc file: "trace.txt", trc level: 1, release: "720"
---------------------------------------------------
[Thr 2172] Mon Jan 07 13:51:44 2013
[Thr 2172] Call function MySapLoadTicketKey 
[Thr 2172] Ticket key as new PSE loaded 
[Thr 2172] Cleanup of function, memory PSE created 
[Thr 2172] Leave function MySapLoadTicketKey with rc = 0.
[Thr 2172] Mon Jan 07 13:52:15 2013
[Thr 2172] MySapEvalLogonTicketEx was called.
[Thr 2172] Unconverted ticket is the following: >>>AjExMDAgAA1wb3J0YWw6QVRJQUFNiAATYmFzaWNhdXRoZW50aWNhdGlvbgEABkFUSUFBTQIAAzAwMAMAA1BNRAQADDIwMTMwMTA3MTAzNAUABAAAAAgKAAZBVElBQU3/AQUwggEBBgkqhkiG9w0BBwKggfMwgfACAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0DCBzQIBATAiMB0xDDAKBgNVBAMTA1BNRDENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTMwMTA3MTAzNDE1WjAjBgkqhkiG9w0BCQQxFgQUYsJ!74Po!/9lrPqttjZXqcfBSTAwCQYHKoZIzjgEAwQvMC0CFD55F60sUc2gyG0gZpbdtLqJ6MBkAhUAiQ87p3inLvWchkphT5Lfl7PJ1mA=<<<
[Thr 2172] Initialized variables...
[Thr 2172] *** ERROR => Struct size 128 is not 128 [ssoxxext.c   459]
[Thr 2172] *** ERROR => MySapEvalLogonTicketEx returns 9. [ssoxxext.c   958]
[Thr 2172] End of function MySapEvalLogonTicketEx.

看来这是“ssoxxext.c”中的内部错误......有什么建议吗?

4

1 回答 1

1

SAP SSO EXT Lib (ssoextlib.dll) 支持两种解析登录票据的方式

  1. 从类中实例化一个对象SAPSSOEXT并使用该EvalPortalTicket方法来评估登录票。
  2. 使用静态方法SAPSSOEXT.EvalSAPTicket评估登录票

因此,根据门户发送的票据类型(如果是 SAP 或门户票据),应使用适当的方法。

欲了解更多信息http://scn.sap.com/thread/1634545

于 2013-02-16T06:11:58.213 回答