13.07.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Note: Without initializing the ORB, JAAS will not be able to perform the login.The application will perform the authentication challenge as it is set in the SASclient configuration file; it is the GUI login panel by default.This sample application uses a callback handler called:ITSOBankCallbackHandler implementing the CallbackHandler interface. It is asimple implementation collecting the login information from a character-basedconsole. It is only provided to show how to implement a callback handler and useit with JAAS. For more information about the handler, see the comments in thesource for ThinAccountViewer, at the end of the file.Running the client-side login sampleTo test the client-side login scenario, launch the ITSOBank thin Java clientapplication from the command line. The client is provided together with theITSOBank sample application as a separate package.Before running the sample, you should change the server parameters in thesas.login.props file, under the Properties folder of the Java thin application clientdirectory. Change the com.ibm.CORBA.securityServerHost and thecom.ibm.CORBA.securityServerPort entries to reflect your environment (thedefault port number is 2809).The following example launches the client using the character-based console tocollect login information:runclient appsrv01 2809 loginThe application will collect the login information: user name, password and realmon the character-based console; for example: manager01, password,dirsrv:389.After a successful authentication the client application GUI comes up; there youcan collect balance information for customers and branches.8.7.3 Server-side login with JAASServer-side login is used when the application has to log the users into thesecurity domain by providing authentication data and login information on theserver side. In these situations, a server-side component, for example: servlet,EJB, performs authentication for the application.For authentication purposes, the Java Authenticaiton and Authorization Services(JAAS) is used on the server-side. Similar to the client-side login, the login isperformed programmatically coded in the component. The user details can becollected in any format and have to be presented through the login context during212 <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!