Issue : User authentication fails
Error : Authentication failure (LDAP, Kerberous, Samba-AD)
Error found in /var/log/secure file :
Mar 18 13:03:43 rhel5 sshd[27058]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.20.2.78 user=leo
Mar 18 13:03:43 rhel5 sshd[27058]: pam_krb5[27058]: authentication fails for 'leo' (leo@vivek.com): Authentication failure (Clock skew too great)
Solution :
Issue is caused due to time sync, it can be fixed by syncing the time & configure ntp to avoid it in future.
Logs after fixing the issue :
Mar 18 13:39:27 rhel5 sshd[31060]: pam_krb5[31060]: authentication succeeds for 'leo' (leo@vivek.com)
Mar 18 13:39:27 rhel5 sshd[31060]: Accepted password for leo from 172.20.2.78 port 49939 ssh2
Mar 18 13:39:27 rhel5 sshd[31060]: pam_unix(sshd:session): session opened for user leo by (uid=0)
