Skip to Content
avatar image
Former Member

internal error using C's SsoSample on linux (SAPSSOEXT )

hi

did someone managed to compile and run the C sample of the

(SAPSSOEXT)SsoSample on linux.

SAPSSOEXT allow non-SAP applications to verify SAP logon tickets and extract the Data.

after successfully initializing the module with the seculib,

im keep getting MY_SAP_INTERNAL_ERROR -

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 12, 2006 at 10:28 AM

    Hi!

    I have the same problem but with de Java sample.

    In my case I try the cookie from the webserver but JSP fails with the function 'evalLogonTicket'.

    Prueba de Tickets SSO2.

    This jsp page uses ticket library version SAPSSOEXT 2 El ticket es: AjExMDAgABBwb3J0YWw6anRvcnJpam9ziAATYmFzaWNhdXRoZW50aWNhdGlvbgEACUpUT1JSSUpPUwIAAzAwMAMAA0RQSQQADDIwMDYwNzEyMDg1NgUABAAAAAgKAAlKVE9SUklKT1P%2FAPYwgfMGCSqGSIb3DQEHAqCB5TCB4gIBATELMAkGBSsOAwIaBQAwCwYJKoZIhvcNAQcBMYHCMIG%2FAgEBMBMwDjEMMAoGA1UEAxMDRFBJAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNjA3MTIwODU2NTVaMCMGCSqGSIb3DQEJBDEWBBQXnpBk6YAwW0aaSjH4xRKX8dRHFjAJBgcqhkjOOAQDBDAwLgIVAKCMCtCUGV2NShSLa4rhD6i%2FF5ZcAhUA9o3%2FZfox65g8rSiBHOzBSrHYmIc%3D

    An error occured. The error message is e java.lang.Exception: MySapEvalLogonTicketEx failed: standard error= 9, ssf error= 0

    Coul anybody help me, please?

    Thanks,

    Juana Torrijos

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 13, 2006 at 05:52 AM

    hi

    when i run my ssosample.jsp, which is in the 'SAPSSOEXT_2-10002921.SAR', the following exception occurs:

    'java.lang.UnsatisfiedLinkError: getVersion'

    and i can see that the sapssoext.dll has been loaded.

    when i run the SSO2Ticket.java, using command 'java SSO2Ticket -i ticket.txt', it prints

    'SAPSSOEXT loaded.

    static part ends.

    Start SSO2TICKET main

    -


    test version -


    Version of SAPSSOEXT: SAPSSOEXT 2

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

    = 26'

    does anyone know the reason? thanks a lot

    Liting Zhou

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Liting Zhou,

      W.r.t Your second issue

      >>java.lang.Exception: MySapEvalLogonTicketEx failed: >>standard error= 5, ssf error = 26'

      ssf error = 26 indicates "certificate not found"

      Pass the certificate (containg public key) In your command line . The public key file can be specified using the -p option.

      some thing like this

      'java SSO2Ticket -i ticket.txt -p verify.pse'

      Usually this -p parameter is not needed for the ticket, if the issuer of the ticket has got a certificate issued by the mySAP.com trust center else certificate is needed.

      W.r.t your 1st issue,

      'java.lang.UnsatisfiedLinkError: getVersion'

      This message indicates that DLL was located and loaded by the system. However, it says it can't find the method 'getVersion'

      Currently I am facing same issue in standalone oc4j 9.0.4 on windows 2000 with jsp sample.

      Were you able to solve your first issue? if so pl. let me know.

      Thanks

      Karunya.

  • avatar image
    Former Member
    Jul 13, 2006 at 08:34 AM

    Hi,

    in sapssoext.h you can find the causes of your error:

    /**********************************************************************/

    /*

    • (C) Copyright 2000-2005 SAP AG Walldorf

    *

    • OSS component: BC-SEC-SSF

    • SAP AG DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,

    • INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO

    • EVENT SHALL SAP AG BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL

    • DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR

    • PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS

    • ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE

    • OF THIS SOFTWARE.

    */

    /**********************************************************************/

    /* Standard error codes. */

    /**********************************************************************/

    #ifndef SAPSSOEXTH

    #define SAPSSOEXTH

    #include <time.h> /* used for time/date support */

    #ifdef __cplusplus

    extern "C" {

    #endif

    #ifndef SAP_O_K

    1. define SAP_O_K (SAPRETURN)0 /* Ok */

    #endif

    #ifndef MYSAPKRN_H

    1. define MYSAP_NO_USER (SAPRETURN)1 /* No user provided to function */

    2. define MYSAP_BUFFER_TOO_SMALL (SAPRETURN)3 /* Provided buffer too small */

    3. define MYSAP_EXPIRED (SAPRETURN)4 /* Ticket expired */

    4. define MYSAP_INVALID (SAPRETURN)5 /* Ticket syntactically invalid */

    5. define MYSAP_BUFFER_TOO_SMALL_USER (SAPRETURN)6 /* provided buffer too small */

    6. define MYSAP_NO_COOKIE (SAPRETURN)8 /* no ticket provided to func */

    7. define MYSAP_INTERNAL_ERROR (SAPRETURN)9 /* Internal error */

    8. define MYSAP_HDLNOTINITIALIZED (SAPRETURN)10 /* API is not initialized */

    9. define MYSAP_NO_MEMORY (SAPRETURN)11 /* malloc failed */

    10. define MYSAP_WRONG_ACTION (SAPRETURN)12 /* wrong action */

    11. define MYSAP_FUNCPOINTERNULL (SAPRETURN)13 /* tried to call NULL p. function*/

    12. define MYSAP_SECTK_RELATED (SAPRETURN)14 /* Error occured in security tk */

    13. define MYSAP_NULL_POINTER (SAPRETURN)15 /* pointer was NULL */

    14. define MYSAP_NO_MORE_CONTENTS (SAPRETURN)16 /* incomplete information in t. */

    15. define MYSAP_NO_CERTIFICATE (SAPRETURN)17 /* couldn't get certificate */

    16. define MYSAP_RESERVED_ID (SAPRETURN)18 /* reserved */

    17. define MYSAP_MISSING_AUTH (SAPRETURN)19 /* missing authentification */

    18. define MYSAP_VERIFY_FAILED (SAPRETURN)20 /* Signature couldn't be verified*/

    19. define MYSAP_WRONG_VERSION (SAPRETURN)21 /* Ticket too new for lib */

    20. define MYSAP_CP_CONVERSION (SAPRETURN)22 /* Conversion error */

    #endif /* MYSAPKRN_H */

    /**********************************************************************/

    /* SSF error codes. */

    /**********************************************************************/

    #ifndef SSFXXALL_H

    #define SSF_API_OK 0 /*operation ok */

    #define SSF_API_NOSECTK 1 /no security toolk. found/

    #define SSF_API_INVALID_FORMAT 2 /*unknown wrapper format */

    #define SSF_API_NODATA 3 /*input data length zero */

    #define SSF_API_NOMEMORY 4 /*insuff. main memory */

    #define SSF_API_SIGNER_ERRORS 5 /*there are signer errors */

    #define SSF_API_NORESULTLISTMEMORY 6 /no memory f. result list/

    #define SSF_API_UNKNOWN_PAB 7 /Priv.Addr.Book not found/

    #define SSF_API_INVALID_PAB_PASSWORD 8 /*invalid PAB password */

    #define SSF_API_RECIPIENT_ERRORS 9 /*there are recip. errors */

    #define SSF_API_INVALID_MDALG 10 /*unknown MD algorithm */

    #define SSF_API_ENCODE_FAILED 11 /*could not encode output */

    #define SSF_API_DECODE_FAILED 12 /*could not decode input */

    #define SSF_API_UNKNOWN_SECTK_ERROR 13 /unknown sec.toolk. error/

    /* SSF Aux Function Return Codes -


    */

    #define SSF_AUX_OK 0 /* function ended successfully*/

    #define SSF_AUX_NOMEMORY 51 /* no more memory output data */

    #define SSF_AUX_NOSIGRCPID 52 /* signer/recip. id is empty */

    #define SSF_AUX_NOSIGRCPINFO 53 /* signer/recipient info empty*/

    #define SSF_AUX_NOSIGRCPINFOLIST 54 /* sig./recip. info list empty*/

    /* Signer and Recipient result codes -


    */

    /* - used in uResult component of a signer or */

    /* recipient security information structure */

    #define SSF_API_SIGNER_OK 0 /* operation ok for signer */

    #define SSF_API_RECIPIENT_OK 0 /* operation ok for recipient */

    #define SSF_API_PROFILE_LOCKED 21 /* security profile is locked */

    #define SSF_API_UNKNOWN_SIGNER 22 /* unknown signer */

    #define SSF_API_UNKNOWN_RECIPIENT 22 /* unknown recipient */

    #define SSF_API_UNKNOWN_PROFILE 23 /* security profile not found */

    #define SSF_API_INVALID_PROFILE 24 /* security profile not usable*/

    #define SSF_API_INVALID_PASSWORD 25 /* invalid password for signer*/

    #define SSF_API_NOCERTIFICATE 26 /* certificate not found */

    #define SSF_API_SIGNER_NOT_OK 27 /* signature invalid */

    #define SSF_API_RECIPIENT_NOT_OK 27 /* operation not ok f. recip. */

    #define SSF_API_UNDEFINED_RESULT 28

    #endif /* SSFXXALL_H */

    Good luck!

    Add comment
    10|10000 characters needed characters exceeded