01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Once the request had successfully executed in <strong>CICS</strong> we checked the <strong>CICS</strong><br />

MSGUSR log which shows useful information about the link user ID used.<br />

Example 10-6 <strong>CICS</strong> log MSGUSR<br />

DFHSN1400 07/10/2002 19:14:11 SCSCPJA4 Session signon for session WC1 by user<br />

CBASRU2 is complete.<br />

DFHSN1500 07/10/2002 19:14:11 SCSCPJA4 Session signoff for session WC1 is<br />

complete. 1 transactions entered with 0 errors.<br />

<strong>The</strong> link user ID is an additional level of security used for MRO and ISC requests.<br />

For EXCI or MRO requests, the link user ID defaults to the user ID under which<br />

the connected region runs. In our case, CBASRU2 is the user ID under which the<br />

J2EE Server started task runs. This user ID must have access to all the same<br />

resources as the flowed user ID (<strong>CICS</strong>RS2). To disable link security, it is possible<br />

to make the systems equivalent by setting the USERID parameter in the EXCI<br />

SESSIONS definition. For more details, refer to “Link security” on page 107.<br />

Note: Our tests showed that in <strong>WebSphere</strong> V4 the client user ID is no longer<br />

automatically propagated through to <strong>CICS</strong> when using the ECIRequest class<br />

from a servlet, as is the case with servlets that run in the <strong>WebSphere</strong> V3.5<br />

plugin. This is because in the <strong>WebSphere</strong> V4 J2EE Server the RACF ACEE of<br />

the thread is not switched to the user ID of the client. This behavior is not<br />

affected by modifying the ThreadID parameter in the EJB deployment<br />

descriptor (see “Security settings” on page 280) since this parameter affects<br />

only the EJB container and not the Web container, which is where servlets are<br />

executed.<br />

Thus if you require propagation of the user ID, we suggest you either use<br />

J2EE applications or modify your servlet code to extract the user ID from the<br />

HTTP basic authentication header, and copy it into the strUserid parameter in<br />

the ECIRequest object. Sample code to do this is provided in our<br />

CTGTesterECI application.<br />

Results with J2EE application<br />

To install our J2EE application, CTGTesterCCI, we first started a new<br />

conversation using the <strong>WebSphere</strong> for z/OS Administration application and<br />

defined a new <strong>CICS</strong> ECI resource adapter for our secure <strong>CICS</strong> region<br />

SCSCPJA4 (for further details refer to “Installation of the <strong>CICS</strong> ECI resource<br />

adapter” on page 252). We then deployed our J2EE application in order for it to<br />

use this new resource adapter. This process is explained in detail in “Installing<br />

the J2EE application” on page 261.<br />

Chapter 10. <strong>CICS</strong> TG and <strong>WebSphere</strong> Application Server for z/OS 277

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!