03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

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.

Note: Without initializing the ORB, JAAS will not be able to perform the login.<br />

The application will perform the authentication challenge as it is set in the SAS<br />

client configuration file; it is the GUI login panel by default.<br />

This sample application uses a callback handler called:<br />

ITSOBankCallbackHandler implementing the CallbackHandler interface. It is a<br />

simple implementation collecting the login information from a character-based<br />

console. It is only provided to show how to implement a callback handler and use<br />

it with JAAS. For more information about the handler, see the comments in the<br />

source for ThinAccountViewer, at the end of the file.<br />

Running the client-side login sample<br />

To test the client-side login scenario, launch the ITSOBank thin Java client<br />

application from the command line. The client is provided together with the<br />

ITSOBank sample application as a separate package.<br />

Before running the sample, you should change the server parameters in the<br />

sas.login.props file, under the Properties folder of the Java thin application client<br />

directory. Change the com.ibm.CORBA.securityServerHost and the<br />

com.ibm.CORBA.securityServerPort entries to reflect your environment (the<br />

default port number is 2809).<br />

The following example launches the client using the character-based console to<br />

collect login information:<br />

runclient appsrv01 2809 login<br />

The application will collect the login information: user name, password and realm<br />

on the character-based console; for example: manager01, password,<br />

dirsrv:389.<br />

After a successful authentication the client application GUI comes up; there you<br />

can collect balance information for customers and branches.<br />

8.7.3 Server-side login with JAAS<br />

Server-side login is used when the application has to log the users into the<br />

security domain by providing authentication data and login information on the<br />

server side. In these situations, a server-side component, for example: servlet,<br />

EJB, performs authentication for the application.<br />

For authentication purposes, the Java Authenticaiton and Authorization Services<br />

(JAAS) is used on the server-side. Similar to the client-side login, the login is<br />

performed programmatically coded in the component. The user details can be<br />

collected in any format and have to be presented through the login context during<br />

212 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

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

Saved successfully!

Ooh no, something went wrong!