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.

3. In the line com.ibm.SOAP.loginUserid= write your security server user ID (the<br />

same that you entered while configuring Global <strong>Security</strong>). If you are using<br />

LDAP distinguished names, do not put names in quotes, just type them as<br />

they are defined in the LDAP server. For our test, we have used LDAP user<br />

cn=wasadmin,o=itso.<br />

4. In the line com.ibm.SOAP.loginPassword= enter the password for that user.<br />

5. Save the file and run wsadmin client without any parameters. You should get<br />

output similar to that shown below.<br />

Example: D-1 Example output after successful connection from wsadmin client<br />

C:\>wsadmin<br />

WASX7209I: Connected to process "server1" on node mka0klfc using SOAP<br />

connector;<br />

The type of process is: UnManagedProcess<br />

WASX7029I: For help, enter: "$Help help"<br />

wsadmin><br />

Now you are ready to start writing scripts.<br />

Sample scripts<br />

This section lists some useful scripts to make the configuration more convenient<br />

for <strong>WebSphere</strong>.<br />

Each script will show and teach something new with the scripting language, and<br />

at the end you will learn how to create your own scripts based on these.<br />

Remember that you can always refer to the InfoCenter for scripting references<br />

and more scripting samples.<br />

Setting global security<br />

The following script can enable or disable global security for the application<br />

server, depending on the parameter value passed to the interpreter. For more<br />

information on this script, check the comments in the source below.<br />

Example: D-2 globalsecurity.jacl<br />

# global security<br />

# usage: wsadmin globalsecurity.jacl [enable | disable]<br />

# store the pointer to the security object<br />

set security_item [$AdminConfig list <strong>Security</strong>]<br />

# store the parameter from the command line<br />

set argv0 [lindex $argv 0]<br />

516 <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!