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.

3. In the line com.ibm.SOAP.loginUserid= write your security server user ID (thesame that you entered while configuring Global <strong>Security</strong>). If you are usingLDAP distinguished names, do not put names in quotes, just type them asthey are defined in the LDAP server. For our test, we have used LDAP usercn=wasadmin,o=itso.4. In the line com.ibm.SOAP.loginPassword= enter the password for that user.5. Save the file and run wsadmin client without any parameters. You should getoutput similar to that shown below.Example: D-1 Example output after successful connection from wsadmin clientC:\>wsadminWASX7209I: Connected to process "server1" on node mka0klfc using SOAPconnector;The type of process is: UnManagedProcessWASX7029I: For help, enter: "$Help help"wsadmin>Now you are ready to start writing scripts.Sample scriptsThis section lists some useful scripts to make the configuration more convenientfor <strong>WebSphere</strong>.Each script will show and teach something new with the scripting language, andat the end you will learn how to create your own scripts based on these.Remember that you can always refer to the InfoCenter for scripting referencesand more scripting samples.Setting global securityThe following script can enable or disable global security for the applicationserver, depending on the parameter value passed to the interpreter. For moreinformation on this script, check the comments in the source below.Example: D-2 globalsecurity.jacl# global security# usage: wsadmin globalsecurity.jacl [enable | disable]# store the pointer to the security objectset security_item [$AdminConfig list <strong>Security</strong>]# store the parameter from the command lineset argv0 [lindex $argv 0]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!