Reputation: 53
In WebSphere 7 (fix pack 25) I would like to set the following value:
'Prefix new alias names with the node name of the cell'
Unfortunately, this does not appear to be logged using admin scripting when using the WebSphere 'Integrated Solutions Console'.
Can someone please let me know how can this setting be set using jython. Thank you.
Upvotes: 2
Views: 875
Reputation: 96
I don't know how to set the property directly, but you can get the behaviour you are looking for another way. Instead of using AdminTask.createAuthDataEntry, you can use AdminConfig.create.
security = AdminConfig.getid('/Cell:'+AdminControl.getCell()+'/Security:/')
AdminConfig.create('JAASAuthData',security, [["alias", "aliasWithoutPrefix"],["userId", "myUser"],["password", "myPassword"]])
This will create a J2C auth entry with the alias 'aliasWithoutPrefix'.
Hope this helps!
Upvotes: 2