• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAAS - No LoginModules configured

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Water! People swim in water! Even tiny ads swim in water:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic