M BUZZ CRAZE NEWS
// general

Slow login with Active Directory on Ubuntu 20.04

By Mia Morrison

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 keyring

The 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 default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy