Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAAS - No LoginModules configured

 
Dana Malach
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get a basic authenication sample working. In my servlet, I have the following code:



However, I keep getting the following error when I start my server (WSAD 5.1):
No LoginModules configured for Verify

I've done some searching on this and all came up with pretty much the same answer. I needed to update my java.security file to point to my jaas.config file - so I entered the following to my java.security file:
login.config.url.1=file:${java.home}/lib/security/jaas.config

That didn't work - does anyone have any ideas what else I am missing?

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

We have a Security forum, where this question is a better fit, so I'm going to move this thread there.
 
Dana Malach
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for moving this thread - I didn't see the security forum when I first posted.
 
Dana Malach
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, a little more information - when running in debug mode, the app fails at this line:

(I removed the callbackhandler to troubleshoot)
My LoginContext never gets created. I was reading that the name - 'jaasEAR' should be the name of the app. I checked in the admin console and 'jaasEAR' is the name of the app, but obviously this is wrong. Anyone have any advice on how to properly set up this LoginContext?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic