I have a question about checking AD domain join status for Linux(CentOS 6) systems that use SSSD. For initial domain join I used winbind "net ads join -k ..." Obtained host keytab etc. When I issue "net ads testjoin", I get "Join OK".
After a month, SSSD/adcli renews machine password, and I get a new host keytab.
When I check the domain join status using same net ads testjoin command, I get an error:
kerberos_kinit_password MYHOSTNAME$@EXAMPLE.COM failed: Preauthentication failed
I still can obtain host ticket using new keytab and check the status using "net ads status" command. I can see "pwdLastSet: 131463365324203378" which matches the timestamp on the keytab. "getent passwd " is also successful; I still can login to servers.
Why is "net ads testjoin" giving error after host renews its machine password with AD?
Is there a better method to test the domain join status?
Thank you.