Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following steps to configure a new J2C authentication data entry:
set security [$AdminConfig getid /Security:mysecurity/]
security = AdminConfig.getid('/Security:mysecurity/')
$AdminConfig required JAASAuthData
print AdminConfig.required('JAASAuthData')
Example output:
Attribute Type alias String userId String password String
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}
alias = ['alias', 'myAlias'] userid = ['userId', 'myid'] password = ['password', 'secret'] jaasAttrs = [alias, userid, password]Example output:
[[alias, myAlias], [userId, myid], [password, secret]]
$AdminConfig create JAASAuthData $security $jaasAttrs
print AdminConfig.create('JAASAuthData', security, jaasAttrs)
Example output:
(cells/mycell/nodes/mynode|resources.xml#JAASAuthData_2)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object