File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!