Enable and disabling Java 2 security using scripting

 

Procedure

  1. Start wsadmin

  2. Identify the security configuration object and assign it to the security variable:

    • Jacl:

      set security [$AdminConfig list Security]
      

    • Jython:

      security = AdminConfig.list('Security')
      print security
      

    Example output

    (cells/mycell|security.xml#Security_1)
    

  3. Modify the enforceJava2Security attribute to enable or disable Java 2 security. For example:

    • To enable Java 2 security:

      • Jacl:

        $AdminConfig modify $security {{enforceJava2Security true}}
        

      • Jython:

        AdminConfig.modify(security, [['enforceJava2Security', 'true']])
        

    • To disable Java 2 security:

      • Jacl:

        $AdminConfig modify $security {{enforceJava2Security false}}
        $AdminConfig save
        

      • Jython:

        AdminConfig.modify(security, [['enforceJava2Security', 'false']])
        

  4. In a network deployment environment only, synchronize the node.


 

See Also


AdminConfig object for scripted administration

 

See Also


Commands for the AdminConfig object