aspose file tools*
The moose likes Websphere and the fly likes JAASAuthData creation problem using AdminConfig.create Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "JAASAuthData creation problem using AdminConfig.create" Watch "JAASAuthData creation problem using AdminConfig.create" New topic
Author

JAASAuthData creation problem using AdminConfig.create

avanish awasthi
Greenhorn

Joined: Jan 15, 2011
Posts: 6
I am trying to create JAASAuthData using script, I am able to create data but password is not being set that I set manually in WAS then it works.
security = AdminConfig.getid('/Cell:'+cell+'/Security:/')
AdminConfig.create('JAASAuthData',security,
[["alias", node+"/abc"],
["description", "abc001"],
["userId", "abc001"],
["password", "abc1"]])

Please let me know if anybody is having idea why its happening.I am giving password in JAASAuthData but it does not set password .
Thanks in advance
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
You can look at the WebSphere generated Jython script by checking "Log command assistance mode" under console preferences.

Use that script as the source script. Customize it to your needs with variables, properties etc.

Let me know if that doesnt work for you. I have created J2C Auth Userid/password using Jython. I can post something for JAASAuthData for you.
avanish awasthi
Greenhorn

Joined: Jan 15, 2011
Posts: 6
Please post that. Thanks
avanish awasthi
Greenhorn

Joined: Jan 15, 2011
Posts: 6
In Log only this thing is coming
Secure administration, applications, and infrastructure > JAAS - J2C authentication data > Node01/abc

So not getting how to set password.
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
See sample code below. I have used it several times in both 6.1 & 7.0 WAS Base and ND versions. It sets the passwords properly.
avanish awasthi
Greenhorn

Joined: Jan 15, 2011
Posts: 6
I am doing in the same way...but it does not set password..
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
what version of websphere? I am assuming that you are issuing AdminConfig.save() after your script executes.
avanish awasthi
Greenhorn

Joined: Jan 15, 2011
Posts: 6
6.1 I am using....Yes At the end I am using AdminConfig.save() to save all configurations created.
Stijn Vandenbussche
Greenhorn

Joined: Jun 29, 2011
Posts: 1
I have the same problem.
Anyone found a solution yet?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAASAuthData creation problem using AdminConfig.create