Test security after enabling it
Basic tests are available that show whether the fundamental security components are working properly. Use this task to validate your security configuration.
After configuring administrative security and restarting all of your servers in a secure mode, validate that security is properly enabled.
There are a few techniques used to to test the various security login types. For example, you can test...
- Web-based BasicAuth login
- Web-based form login
- Java client BasicAuth login
Basic tests are available that show whether the fundamental security components are working properly. Complete the following steps to validate your security configuration:
Procedure
- After enabling security, verify that your system comes up in secure mode.
Test the Web-based BasicAuth with Snoop,...
http://hostname.domain:9080/snoopA login panel is displayed. If a login panel does not display, then a problem exists. If the panel appears, type in any valid user ID and password in your configured user registry.
Note that the Snoop servlet is only available in the domain if you included the DefaultApplication option when adding the appserver to the cell.
The -includeapps option for the addNode command migrates the DefaultApplication option to the cell. Otherwise, skip this step.
- Test the Web-based form login by starting the console...
http://hostname.domain:port_number/ibm/consoleA form-based login page is displayed. If a login page does not appear, try accessing the console by typing...
https://myhost.domain:9043/ibm/consoleType in the administrative user ID and password that are used for configuring your user registry when configuring security.
- Test Java Client BasicAuth with dumpNameSpace.
Use...
app_server_root/bin/dumpNameSpace.batA login panel appears. If a login panel does not appear, there is a problem. Type in any valid user ID and password in your configured user registry.
- Test all of your applications in secure mode.
- If all the tests pass, proceed with more rigorous testing of your secured applications.
If you have any problems, review the output logs in the directories...
- /logs/nodeagent
- /logs/server_name
The results of these tests, if successful, indicate that security is fully enabled and working properly.
To test the Snoop application...
Applications | Enterprise Applications | DefaultApplication | Security role to user/group mapping
In the RACF command, enter All Role as All#Role, as in the following example:
> RDEFINE EJBROLE S30CSA1.All#Role UACC(NONE) APPLDATA('TESTER1') PERMIT S30CSA1.All#Role CLASS(EJBROLE) ID(TESTER1) ACCESS(READ)>
SETROPTS RACLIST(EJBROLE)
REFRESH PE S30CSA1 CLASS(APPL) ID(TESTER1) ACCESS(READ)