aspose file tools
The moose likes Security and the fly likes Secure Login through JAAS and servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "Secure Login through JAAS and servlet" Watch "Secure Login through JAAS and servlet" New topic
Author

Secure Login through JAAS and servlet

manish sahni
Ranch Hand

Joined: Sep 09, 2009
Posts: 33

Hi,

I am new to JAAS and i tried to implement JAAS into my servlet .
However i am facing problem .
My snippet of code is:-




CallBackHandler:-



Loginservlet



Error:-


Please do let me know the root cause
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 420

Are you using Tomcat as your web container.

May be this will help you SecurityException


Regards
KumarRaja

manish sahni
Ranch Hand

Joined: Sep 09, 2009
Posts: 33

yes the container i am using is tomcat 6.0.20
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 420

Have you tried the link I posted. Did that help you ?
manish sahni
Ranch Hand

Joined: Sep 09, 2009
Posts: 33

I have tried that link but still i am stuck
please help

regards
rajan patil
Greenhorn

Joined: Feb 28, 2010
Posts: 3
Did you used configuration file?
whose contents will be like :

WebLogin{

com.DataSourceLoginModule required

};

Exception shows that its unable to find that config file.
 
 
subject: Secure Login through JAAS and servlet
 
developer file tools