aspose file tools*
The moose likes Servlets and the fly likes Need help with transparent single sign-on servlet filter 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 "Need help with transparent single sign-on servlet filter" Watch "Need help with transparent single sign-on servlet filter" New topic
Author

Need help with transparent single sign-on servlet filter

Chup Rush
Greenhorn

Joined: Aug 04, 2009
Posts: 2
Hi all,

I am trying to see if I can write a servlet filter to do transparent single sign-on using Kerberos authentication ticket; however, this is over my head

I get the following error:
GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos Key)

I am not sure if my code is being able to read the keytab or even if I am doing this correct . I appreciate any help.



Himanshu Kansal
Ranch Hand

Joined: Jul 05, 2009
Posts: 257
Hello Chup,

Please use proper [code] tags.

Do krb5.conf and sa.conf have proper format?


Experience and talent are independent of age
Chup Rush
Greenhorn

Joined: Aug 04, 2009
Posts: 2
I think I have the proper keytab and krb5 configuration since I can use kinit and get ticket from the kdc.



krb5.conf


Pat Gonzalez
Greenhorn

Joined: Oct 18, 2009
Posts: 19
Here's an open source project http://spnego.sourceforge.net with documentation, examples and a tutorial. It does exactly what you are trying to do
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help with transparent single sign-on servlet filter
 
Similar Threads
Consume a .NET kerberized web service
codebase property in JSP?
Difference in Kerberos between J2SE1.4.2_05 and J2SE1.5.0_04???
Tomcat: Valve with SPNEGO-Authentication
JAAS Kerberos login on WebSphere