Slow local user login when SSSD is configured and there is no connectivity to global catalog server

Posted by eidercollider@reddit | linuxadmin | View on Reddit | 5 comments

Hi, I have SSSD configured on Ubuntu 24.04 (via realm join) This works fine However, during testing I noticed that in the situation where the system lacked connectivity to the global catalog server (domain controller, tcp/3268) then attempting to log in with a local account was extremely slow (10s+)

This felt like it was attempting to query the username on the network first before timing out and falling back to checking locally

I've checked /etc/nsswitch.conf and it's as expected:

passwd, group, shadow: files systemd sss gshadow: files systemd

Does anyone know where this delay might be coming from?

I am not using fully qualified names for logins so that may be part of the problem...

Many thanks!