Enable and disable global security using scripting

 

+

Search Tips   |   Advanced Search

 

Overview

The default profile sets up procedures so that one can enable and disable global security based on LocalOS registry.

 

Steps for this task (dependent on configuration)

Start wsadmin and execute...

  • Jacl:

    ### Use the help command to find out the arguments required for this call
    securityon help
    
    ### Enable global security based on the LocalOS registry 
    securityon user1 password1
    
    ### Disable global security based on the LocalOS registry
    securityoff
    

  • Jython:

    securityon()
    
    securityon('user1', 'password1')
    
    securityoff()