permaculture playing cards*
The moose likes Security and the fly likes Secure Login through JAAS and servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
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: 41

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: 518
    
    2

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: 41

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

Joined: Mar 18, 2010
Posts: 518
    
    2

Have you tried the link I posted. Did that help you ?
Manish Sahni
Ranch Hand

Joined: Sep 09, 2009
Posts: 41

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
 
Similar Threads
JBoss 5.1.0 GA. FORM based authentication
Is this possible with JAAS, or WebSphere even for that matter?
Using cookies in JAAS to extend a Single Sign On
EJB Security: Not getting correct name in Principal
Tomcat JAAS Authentication NullPointerException