Configure a new J2CAuthentication data entry

  • Identify the parent ID:

    set security [$AdminConfig getid /Cell:cellname/Security:/]
    

    Example output:

    (cells/cellname:security.xml#Security_1)
    

  • Get required attributes:

    $AdminConfig required JAASAuthData
    

    Example output:

    Attribute       Type
    alias           String
    userId          String
    password        String
    

  • Set up required attributes:

    set alias [list alias myAlias]
    set userid [list userId myid]
    set password [list password secret]
    set jaasAttrs [list $alias $userid $password]
    

    Example output:

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

  • Create JAAS auth data:

    $AdminConfig create JAASAuthData $security $jaasAttrs
    

    Example output:

    (cells/cellname:security.xml#JAASAuthData_2)
    

  • Save changes:

    $AdminConfig save
    

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.