Example: Migrating - Enabling security

The following examples demonstrate how to enable local os security for WebSphere Application Server V4.0 and V6.x:

  • wscp V4.0

    SecurityConfig setAuthenticationMechanism LOCALOS -userid {me secret} 
    SecurityConfig enableSecurity 
    
    

  • wsadmin V6.x

    Jacl

    securityon  myuser  mypassword
    

    Jython

    securityon('myuser',  'mypassword')
    

    This command turns on local security. The securityon function checks the validity of the user and password combination, and fails the function if the combination is invalid.

    Note: This action assumes that global security is fully configured before issuing this command and that you are just switching the enabled flag on and off. If global security is not yet fully configured, the command fails.


 

See Also


Commands for the AdminConfig object