I am running FreeBSD 8.1 on an x86 computer. SAMBA and Kerberos 5 has been installed and GSSAPI is available. Bind (have tried 9.7.2-P2 and 9.8.0-a1) has been installed and configured, and each time bind (compiled with "--with-gssapi=/usr") refuses to connect to the key distribution server when I start it. I receive the following error:
Code:
default realm from krb5.conf (EXAMPLE) does not match tkey-gssapi-credential (DNS/ns1.example.com@EXAMPLE)
Of course, names have been changed here, but remain consistent with the actual situation. Manual pages for named.conf suggest that the principal (DNS/ns1.example.com@EXAMPLE) is correct, and manuals for krb5.conf do seem to support my configuration, but I still receive the error. I have tried other variations on the principal name (ns1@EXAMPLE, ns1.example, etc.) but to no avail. I can connect and receive tickets from the key distribution center (Windows Server 2008, Domain Controller) using
kinit -k DNS/ns1.example.com@EXAMPLE. Using the klist utility does indeed reflect the ticket status in the case of kinit.
The pertaining bits of named.conf:
Code:
options {
. . .tkey-gssapi-credential "DNS/ns1.example.com@EXAMPLE";
tkey-domain "EXAMPLE";
. . .
}
krb5.conf:
Code:
[logging]
default = FILE:/var/log/krb5/libs.log
kdc = FILE:/var/log/krb5/kdc.log
admin_server = FILE:/var/log/krb5/admin.log
[libdefaults]
default_realm = EXAMPLE
default_tkt_enctypes = des-cbc-md5
default_tgs_enctypes = des-cbc-md5
dns_lookup_realm = true
dns_lookup_kdc = true
ticket_lifetime = 30d
forwardable = yes
default_keytab_name = FILE:/etc/ns1.keytab
[realms]
ROLER = {
kdc = dc1.example.com:88 // Domain Controller
admin_server = dc1.example.com
default_domain = example.com
}
[domain_realm]
.example.com = EXAMPLE
example.com = EXAMPLE
[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}
My end goal is to securely (GSS-TSIG) allow dynamic updates from hosts in an active directory domain (example.com). I used
this as an example for the process, and Microsoft's meager
documentation. Though I had to adapt some of the steps to my software versions, the steps were followed closely.
If anyone can tell me what I'm missing and how to resolve the issue, I'd be obliged.