Slow login with Active Directory on Ubuntu 20.04
I am running an Ubuntu 20.04 machine configured to use my organisation's Active Directory (AD) setup.
There is a significant difference in the login time depending on whether I am connected to my organisation's local network. Away from the network, login takes ~1s, whereas connected to the network it can take several minutes, sometimes even rejecting my password at first before eventually accepting it.
Presumably there is some credential caching going on when I am disconnected from the network, but this difference in login times does seem excessive.
/var/log/auth.log shows the following around a login event:
Feb 21 14:17:01 device_name CRON[16161]: pam_unix(cron:session): session opened for user root by (uid=0)
Feb 21 14:17:01 device_name CRON[16161]: pam_unix(cron:session): session closed for user root
Feb 21 14:20:04 device_name gdm-password]: pam_unix(gdm-password:auth): authentication failure; logname= uid=0 euid=0 tty=/dev/tty1 ruser= rhost= user=user_name
Feb 21 14:20:05 device_name gdm-password]: pam_sss(gdm-password:auth): authentication success; logname= uid=0 euid=0 tty=/dev/tty1 ruser= rhost= user=user_name
Feb 21 14:20:07 device_name gdm-password]: gkr-pam: unlocked login keyringThe authentication failure from pam_unix after a wait of 3 minutes seems suspicious, but I don't know enough to properly diagnose this.
Does anyone know what could be causing such long login times when connected to the AD network?
Reset to defaultKnow someone who can answer? Share a link to this question via email, Twitter, or Facebook.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"