title: Cannot get Kerberos service ticket: KrbException: Server not found in Kerberos database (7)
body: <p>I'm developing using the GSSAPI, and I have code which works with a vanilla MIT Kerberos 5 server to do some client/server work. I'm now verifying it's functionality against Active Directory and I've hit an issue.</p>
  
  <p>I have my server authenticated and listening. I can get the client to login. For the record, this is code based off of <a href="http://thejavamonkey.blogspot.com/2008/04/clientserver-hello-world-in-kerberos.html">http://thejavamonkey.blogspot.com/2008/04/clientserver-hello-world-in-kerberos.html</a>. However, I cannot get the client to get the ticket back from AD to get the session between it and the server. I get KrbException: Server not found in Kerberos database (7), and I cannot figure out where the proper place is to add it. I've tried putting the server name with ip in the hosts file, updating dns, putting in server records, etc, with no luck.</p>
  
  <p>If anyone knows where the proper place is to update AD to set a server in the Kerberos Database, that would be great!</p>