wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes Single Sign-On using Kerberos authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Single Sign-On using Kerberos authentication" Watch "Single Sign-On using Kerberos authentication" New topic
Author

Single Sign-On using Kerberos authentication

Alice kinjal
Greenhorn

Joined: Jun 08, 2008
Posts: 9
Hi,

I am trying to implement SSO using JAAS and GSS API with Apache DS and Kerberos. I did the following steps-

1. Setup the KDC using Apache DS 1.5.1 and Apache Directory Studio 1.5.3
2. Created a JAAS config file with below details-
GSSClient{
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache=false;
};
GSSServer{
com.sun.security.auth.module.Krb5LoginModule required
storeKey=true;
};
3. Created Server and Client classes
4. Ran server using the main method
5. When I try to run the Client code I get a timeout exception-
>>> KrbAsReq in createMessage
>>> KrbKdcReq send: kdc=localhost UDP:88, timeout=30000, number of retries =3, #bytes=238
>>> KDCCommunication: kdc=localhost UDP:88, timeout=30000,Attempt =1, #bytes=238
SocketTimeOutException with attempt: 1
>>> KDCCommunication: kdc=localhost UDP:88, timeout=30000,Attempt =2, #bytes=238
SocketTimeOutException with attempt: 2
>>> KDCCommunication: kdc=localhost UDP:88, timeout=30000,Attempt =3, #bytes=238
6. I am completely stuck and need advise.

Thanks.


 
wood burning stoves
 
subject: Single Sign-On using Kerberos authentication
 
Similar Threads
Do we need to have a KDC to run a GSS API example?
Java client imitating IE6 behavior: obtaining a Kerberos ticket, and sending it through SPNEGO
JavaMail and Kerberos
JAAS Kerberos login on WebSphere
Difference in Kerberos between J2SE1.4.2_05 and J2SE1.5.0_04???