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

Create successful ePaper yourself

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

The JACL language that is used in scripts allows you to create procedures.<br />

Procedures may be grouped into a profile files that can be passed to wsadmin in<br />

a command line to create a custom environment for wsadmin execution. These<br />

procedures can then be used as normal JACL commands. For more information<br />

about how to create profiles, please refer to the <strong>WebSphere</strong> Application Server<br />

info center.<br />

Preparing and testing the wsadmin client<br />

The wsadmin scripting tool can run with a command prompt where the user can<br />

feed the commands to the interpreter and execute them from a console; or<br />

wsadmin can run in silent mode where users can pass a script file as a<br />

parameter to the tool and execute a whole sequence of commands.<br />

The scripts provided below can be saved in files and you can feed then to the<br />

wsadmin tool or you can start wsadmin as a command line interpreter and run<br />

the commands line by line from the scripts.<br />

Since the wsadmin tool is basically a Java application accessing the <strong>WebSphere</strong><br />

Application Server, when global security is enabled, the application has to<br />

provide the right user name and password to be able to run the scripts.<br />

You can pass the username and password in the command line or by modifying<br />

the sas.client.props file.<br />

Running the script with command line parameters<br />

Issue the wsadmin command with the following parameters:<br />

►<br />

►<br />

-username <br />

-password <br />

For example:<br />

wsadmin -username cn=wasadmin,o=itso -password password myscript.jacl<br />

Editing the sas.client.props file<br />

Follow these steps to provide the user name and password in the properties file<br />

for the client.<br />

1. Open the sas.client.props file in your text file editor. The file is located in the<br />

/properties directory.<br />

2. Go to the section Authentication Configuration and find the # JMX SOAP<br />

connector identity.<br />

Appendix D. Using wsadmin scripting for security configuration 515

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

Saved successfully!

Ooh no, something went wrong!