aspose file tools*
The moose likes Security and the fly likes JAAS - No LoginModules configured Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "JAAS - No LoginModules configured" Watch "JAAS - No LoginModules configured" New topic
Author

JAAS - No LoginModules configured

Dana Malach
Greenhorn

Joined: Feb 06, 2006
Posts: 3
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
Marshal

Joined: Mar 22, 2005
Posts: 42916
    
  68
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

Joined: Feb 06, 2006
Posts: 3
thanks for moving this thread - I didn't see the security forum when I first posted.
Dana Malach
Greenhorn

Joined: Feb 06, 2006
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAAS - No LoginModules configured