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...

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

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

Example 4-4 Login-config section of the Web deployment descriptorFORMWebbank realm/login/login.html/login/loginerror.htmlSimple form-based login does not require any extra code development on theserver side. Servlet j_security_check used by <strong>WebSphere</strong> Application Serverenforces only the name of the input fields that the developer should put in thecustom Login Form.These fields are as follows:► j_username should be the input field in which a user will type the user ID.► j_password should be the input field into which user will type the password.The action required for the HTTP POST method is j_security_check. A simpleHTML code for the custom Login Form is given in Example 4-5.Example 4-5 Sample custom login form from the ITSOBank applicationUserid:Password:&nbsp;Note: The j_security_check servlet will not work when global security isdisabled; the application server will return a Page Not Found error.This is also true for the ibm_security_logout servlet, as you will see later.Chapter 4. Securing Web components 61

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

Saved successfully!

Ooh no, something went wrong!