get "Kerberos 5 refuses you" in screensaver
Hi,
Since upgrading to Lion I sometimes cannot login anymore from the screensaver. Today I logged in via ssh (this still works) and saw that when I press a key to make the login box appear the following appears in /var/log/secure.log:
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_authenticate(): Got user: pevaneyn
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_authenticate(): Got ruser: pevaneyn
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_authenticate(): Got service: screensaver
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in od_principal_for_user(): No authentication authority returned
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in od_principal_for_user(): failed: 7
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_authenticate(): Failed to determine Kerberos principal name.
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_authenticate(): Done cleanup3
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_authenticate(): Kerberos 5 refuses you
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_acct_mgmt(): OpenDirectory - Membership cache TTL set to 1800.
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in od_record_check_pwpolicy(): retval: 0
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in od_record_attribute_create_cfstring(): returned 2 attributes for dsAttrTypeStandard:AuthenticationAuthority
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): Establishing credentials
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): Got user: pevaneyn
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): Context initialised
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): Got euid, egid: 501 20
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): Done getpwnam()
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): Done setegid() & seteuid()
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): pam_sm_setcred: krb5 user pevaneyn doesn't have a principal
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): Done cleanup3
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): Done seteuid() & setegid()
Sep 9 13:26:07 pevaneyn-mac loginwindow[65]: in pam_sm_setcred(): Done cleanup4
Sep 9 13:53:35 pevaneyn-mac sshd[4952]: Accepted keyboard-interactive/pam for pevaneyn from 10.48.66.17 port 49506 ssh2
You can see me logging in at the end. No login window appears, the screen remains blank.
I recovered by reloading 😟.
I guess that the LKDC is messed up. What can I do to fix it?
MacBook Pro, Mac OS X (10.7.1)