wood burning stoves 2.0*
The moose likes Spring and the fly likes kerberos/spnego authentication without keytab file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "kerberos/spnego authentication without keytab file" Watch "kerberos/spnego authentication without keytab file" New topic
Author

kerberos/spnego authentication without keytab file

rutuja patil
Greenhorn

Joined: Dec 17, 2009
Posts: 23
With spring can we use kerberos/spnego authentication in application without keytab file?

Thanks.
Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
rutuja patil wrote:With spring can we use kerberos/spnego authentication in application without keytab file?

Thanks.


No, keytab file is essential to establish the Trust relationship. URL for some reading on Kerberos with Spring.


SCJP 1.5, SCEA, ICED (287,484,486)
rutuja patil
Greenhorn

Joined: Dec 17, 2009
Posts: 23
Thanks!
Pat Gonzalez
Greenhorn

Joined: Oct 18, 2009
Posts: 19

It is true that Spring's spnego auth can only be used with a keytab.

However, to be more precise, a keytab is NOT essential nor required for Kerberos authentication.

It seems that according to the spec, shared secrets are handled at the protocol level (http://tools.ietf.org/html/rfc4120).

For example, the KDC necessarily knows the password for both the client and the server.

Hence, the shared secret problem is solved.

Here's an open source project that enables single sign-on for java web apps that does not require a keytab:

http://spnego.sourceforge.net

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: kerberos/spnego authentication without keytab file