PDA

View Full Version : Authentication failures caused by NTP drift



JulienRight
03-16-2025, 12:39 PM
Hi,

Just wanted to share a weird issue we finally fixed after weeks of headaches. We kept getting random authentication failures and certificate validation errors across different services.

Turns out our NTP config was completely messed up, causing time drift between our servers. The fun part? The errors weren't consistent - sometimes everything worked fine for days, then suddenly we'd get bombarded with auth failures and weird SSL errors. Logs showed time differences up to 3 minutes between servers (yikes).

Fixed it by:
- Switching from pool.ntp.org to more reliable regional servers
- Setting proper minpoll/maxpoll values (was default 64/1024, way too long)
- Adding proper firewall rules for NTP traffic (was getting dropped on some servers)
- Setting up ntpq monitoring in our alert system

I found this comprehensive guide that explains NTP servers and time synchronization really well if anyone needs more information : Actionee (https://www.actionee.fr/serveur-ntp-guide-complet/)

Anyone else seen auth issues from time drift? Any other NTP tweaks you'd recommend for a multi-DC setup?