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.

10.3.2 HTTP Server and basic authentication testing<br />

274 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> <strong>V5</strong><br />

Next, we decided to route our requests to port 99 on which our HTTP Server was<br />

listening. To enable the HTTP Server to forward requests to the <strong>WebSphere</strong><br />

plugin, we added the following service statement to httpd.conf:<br />

Service /CTGTester*/*<br />

/usr/lpp/<strong>WebSphere</strong>/WebServerPlugIn/bin/was400plugin.so:service_exit<br />

Since we did not have a matching rooturi in our <strong>WebSphere</strong> plugin configuration<br />

file (was.conf), the request was automatically routed over to the J2EE Server,<br />

where it was processed just like the previous requests handled by the HTTP<br />

Transport Handler.<br />

We also modified our httpd.conf file to turn on turn on HTTP basic authentication<br />

for our Web applications. This meant our Web applications were now protected<br />

and the HTTP Server would allow access only if a valid user ID and password<br />

were supplied. <strong>The</strong> statements we added are as follows:<br />

Protection CTGTesterWeb {<br />

ServerID CTGTester<br />

UserID %%CLIENT%%<br />

AuthType Basic<br />

PasswdFile %%SAF%%<br />

Mask All<br />

}<br />

Protect /CTGTester*/* CTGTesterWeb<br />

Results with ECIRequest/servlet application<br />

We invoked our servlet application, CTGTesterECI Web application, using the<br />

following URL:<br />

http://wtsc66oe.itso.ibm.com:99/CTGTesterECIweb<br />

This caused the basic authentication challenge window to be presented to the<br />

Web client, as shown in Figure 10-24.<br />

Figure 10-24 Basic authentication prompt

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

Saved successfully!

Ooh no, something went wrong!