Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Servlets and the fly likes Container Authentication & JAAS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Container Authentication & JAAS" Watch "Container Authentication & JAAS" New topic

Container Authentication & JAAS

s prasad

Joined: Aug 24, 2003
Posts: 7
How can i make the container to use JAAS to authenticate users i.e j_username and j_userpassword should be validated againt our own user database. And does servlet specification requires the container to provide a way for using JAAS for container authentication?
Eelco den Heijer
Ranch Hand

Joined: Jan 17, 2002
Posts: 61
This problem is rather container specific. You have to tell the container to use your custom DB authentication module. How exactly depends largely on what servlet container you are using.
You also have to build your own (simple) authentication module that implements a number of standard callback methods. Details depend on the servlet container. There exist a number of default implementations (I know there are default examples for Weblogic and JBoss)

== <br />Rgrds,<br />Eelco<br /> <br />SCJP, SCJD, SCBCD, SCWD, SCEA
I agree. Here's the link:
subject: Container Authentication & JAAS
Similar Threads
WAS 5.0 Connection Pool set up
Authentication in JSF
Security frameworks for application frameworks
Swing client communication...
stateless session bean and declaritive security