Skip to Content
Former Member
Apr 22, 2008 at 05:26 AM

SAP not generating MYSAPSSO2 on successful authentication


I am trying to write a custom SAP Login module which would have some authentication logic and once authenticated SAP should generate MYSAPSSO2 cookie.

For the time being, I have written a stub module which always returns successful authentication status.

We have a simple servlet which invokes this authentication module as follows.

Servlet has –

LoginContext lc= new LoginContext(“myPolicy”);


myPolicy has the following login modules –

1 MyLoginModule Requisite

2 CreateLoginTicketModule – Optional

On successful authentication, createLoginModule is setting SAPLogonTicket as the private credential for a subject but nowhere we could see the required cookie ( iehttpheader is showing JSESSIONID and saplb cookies but not MYSAPSSO2)

subject=Subject: Principal: manasi --- Subject is set correctly

Private Credential:

Principal manasi

HTTP parms –

HTTP/1.1 200 OK

Server: SAP J2EE Engine/7.00

Content-Type: text/html

Set-Cookie: saplb_*=(ps6073_N4S_01)18533550; Version=1; Path=/

Content-Length: 519

Date: Thu, 10 Apr 2008 14:02:42 GMT

Set-Cookie: JSESSIONID=(ps6073_N4S_01)ID0291618550DB00965507315922702307End; Version=1;; Path=/