We have setup a KDC environment in CentOs 5.5 . We have kerberized telnet & SSH configured on the KDC server itself. The server is setup properly and DNS is working fine as we can login to telnet & SSH in KDC from a CentOs client just fine.
Now, we are configuring JAAS & GSS to work with our KDC. We have customized code As per example from this URL - http://thejavamonkey.blogspot.com/2008/04/clientserver-hello-world-in-kerberos.html .
We have run the code both on a windows client and linux client. the client.java executes fine without any error and display a ticket .
But when server.java runs it mainly gets an error in both environment - "Integrity check on decrypted field failed (31)"
What I understand that this error means that ticket is not intended for the client which is trying to log in to KDC. However, after much troubleshooting, we are still unable to rectify this error.