Configure new J2C authentication data entries

 

An example configuring new J2C authentication data entries follows:

  • Identify the parent ID and assign it to the security variable.

    set security [$AdminConfig list Security]
    

    or

    set security [$AdminConfig getid /Security:mysecurity/]
    

  • Identify the required attributes:

    $AdminConfig required JAASAuthData
    

    An example of this output follows:

    Attribute     Type
    alias         String
    userId        String
    password      String
    

  • 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]
    

    An example of this output follows:

    {alias myAlias} {userId myid} {password secret}
    

  • Create JAAS authentication data:

    $AdminConfig create JAASAuthData $security $jaasAttrs
    

    An example of this output follows:

    (cells/cellname/nodes/nodename:resources.xml#JAASAuthData_2)
    

  • Save changes:

    $AdminConfig save