Interesting. Ok, your /etc/krb5.conf doesn't work for me, but I am finding out something even more interesting. It looks like /Library/Preferences/edu.mit.Kerberos is still valid. On my macbook air, I have two realms defined: one for work, one for home. I _can_ kinit to the work realm (also running Red Hat Enterprise Linux), but I cannot kinit to the home realm. I'm at a loss as to why. My /Library/Preferences/edu.mit.Kerberos looks like this (I have no /etc/krb5.conf):
[domain_realm]
.home.com = HOME.COM
home.com = HOME.COM
.work.com = WORK.COM
work.com = WORK.COM
[libdefaults]
default_realm = HOME.COM
allow_weak_crypto = yes
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 36000
[realms]
HOME.COM = {
admin_server = kerberos.home.com
kdc = kerberos.home.com
default_domain = home.com
}
WORK.COM = {
admin_server = kerberos.corp.work.com
kdc = kerberos.corp.work.com
default_domain = work.com
}
[logging]
kdc = FILE:/var/log/krb5kdc/kdc.log
admin_server = FILE:/var/log/krb5kdc/kadmin.log
I'm completely scratching my head on this one. Obviously, Lion _is_ capable of obtaining tickets, but I'm not sure why it will work on one but not the other. It might be server settings, but kinit isn't giving me any real information because:
% kinit
user@HOME.COM's Password:
kinit: krb5_get_init_creds: unable to reach any KDC in realm HOME.COM
isn't overly helpful. =(
Both servers are MIT Kerberos (the work KDC might be running on RHEL5, my home KDC is running RHEL6 (the work one might as well, but I have no way of finding out easily)).
Each time I try the work one, after connecting to the VPN, I get a ticket (have done so a half dozen times now, not one failure). This makes absolutely no sense. I set the odutil command noted in an earlier comment to enable debug logging, and saw some attempts to do a lookup in the /Local/Default directory for the host, but...
Ha!
Ok, this is fun.. type and work at the same time. Sorry if the above is a bit of a notepad, but... maybe it will help others find it.
Seems like the problem was I did not have UDP ports 88 and 749 open on the KDC (there was no need before, everything with MIT Kerberos went over TCP). However, heimdal seems to want _UDP_. Opening those ports on the KDC's firewall is all it took, and now I can kinit fine on this laptop. Will try my wife's in a moment.
hmolina, maybe see if the firewall on the Lion server is allowing UDP connections to those two ports?