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?