Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAASAuthData creation problem using AdminConfig.create

 
avanish awasthi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post that. Thanks
 
avanish awasthi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing in the same way...but it does not set password..
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what version of websphere? I am assuming that you are issuing AdminConfig.save() after your script executes.
 
avanish awasthi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
6.1 I am using....Yes At the end I am using AdminConfig.save() to save all configurations created.
 
Stijn Vandenbussche
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same problem.
Anyone found a solution yet?
 
seshidhar raju
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
def createJaasAuthenticationData():
securityId = AdminConfig.getid("/Cell:%s/Security:/" % "serverNode01Cell")
args = [["alias", "serverNode01/abc"],["description", "j2cAuthentication description"],["userId", "abc001234"],["password", "abc12345"]]
AdminConfig.create('JAASAuthData', securityId, args)
AdminConfig.save()


createJaasAuthenticationData()

Try this it worked for me...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic