Configure new J2C authentication data entries using scripting

 

+

Search Tips   |   Advanced Search

 

Procedure

  1. Start wsadmin

  2. Execute one of the following sripts...

    • Jacl...

      ### Identify the parent ID and assign it to the security variable.
      set security [$AdminConfig getid /Security:mysecurity/]
      
      
      ### Identify the required attributes: 
      $AdminConfig required JAASAuthData
      
      ### Set up the required attributes: 
      set alias [list alias myAlias]
      set userid [list userId myid]
      set password [list password secret]
      set jaasAttrs [list $alias $userid $password]
      
      ### Create JAAS authentication data: 
      $AdminConfig create JAASAuthData $security $jaasAttrs
      $AdminConfig save
      
      

    • Jython...

      security = AdminConfig.getid('/Security:mysecurity/')
      print AdminConfig.required('JAASAuthData')
      
      alias = ['alias', 'myAlias']
      userid = ['userId', 'myid']
      password = ['password', 'secret']
      jaasAttrs = [alias, userid, password]
      
      print AdminConfig.create('JAASAuthData', security, jaasAttrs)
      AdminConfig.save() 
      

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

 

See Also


Commands for the AdminConfig object