Configure new J2C authentication data entries using scripting
Procedure
- Start wsadmin
- 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 saveJython...
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()- In a network deployment environment only, synchronize the node.
See Also
Commands for the AdminConfig object