I'm trying to write a kerberos aware application using the gssapi in c. I've been following the guides on this site, but I am getting stuck when calling gss_import_name
with HOST/SERVER-NAME
in my buffer..
I keep getting the error "Server not found in Kerberos database".
I'm trying to connect to a windows server from a linux box running Centos 6.5, using the preinstalled gssglue library. I followed this guide to connect my linux box to the windows domain. In a nutshell, I ran authconfig
with a bunch of commands and then net ads join
. I can successfully call kinit with my windows domain password, so I know I am authenticating through the domain.
How do I add this server to my Kerberos database?
Check, wether the SPN is really registered in the AD. Obviously it isn't, that's why it is failing. Edit: The formatted string you pass to gss_import_name
is not correct. It does not look like with SSPI but it is different with GSS-API. Your call must look like this.