Skip to content

Desktop login reference

Users removed or deactivated

  • Removed from the device's user list: the agent removes admin rights and locks the account (usermod -L -e 1) at the next check in. The home directory is kept. Adding the user again unlocks it.
  • Deactivated in the directory (SCIM active: false, Google suspended user): the server drops the user from the list of every device at its next check in, with the same effect.

Together with reverify_hours and offline_lock_hours this bounds how long a removed person keeps access: immediately for online devices, at the latest after the shorter of both periods for offline ones.

What the console shows

The device page lists for every managed account the last SSO confirmation and whether the local password is currently locked. Every SSO login (success and failure, with reason) is written to /var/lib/limdm/auth-events.log, reported with the next check in and shown under Device events on the device's Commands tab (kept 365 days). A user deactivated in the directory also raises the notification event directory.user_disabled.

Files on the device

File Content
/etc/limdm/users.json username to email mapping of managed users (0600)
/etc/limdm/login.json login configuration incl. client secret and offline limit (0600)
/var/lib/limdm/sso-verified.json last SSO confirmation per user (0600)
/var/lib/limdm/auth-events.log login results until the next check in (0600)

Security notes

  • Users must only confirm codes they see on their own device's login screen. The device authorization grant is open to phishing when someone sends a code to a victim; MFA does not prevent that.
  • The local password never leaves the device. It is stored by chpasswd with the system's password hashing (yescrypt on current distributions).
  • The client secret of the device flow client is stored encrypted on the server: the console seals client_secret of a com.limdm.login item with AES-256-GCM under a key derived from LIMDM_SESSION_KEY (the editor then shows sealed:v1:…; type a new secret in clear to replace it). Items saved by older versions are sealed at the first start, and after a session key rotation the secrets are sealed again with the new key (Session key). The audit log and the version history record the sealed form only. The server opens the secret when it builds a device's declarations and sends it over mTLS.
  • On the device the secret stays in clear (/etc/limdm/login.json and the agent state, root only, 0600): the agent sends it to the provider in the device authorization grant and has no key the server could seal it for. Device flow clients are public clients at most providers; treat the secret as not confidential and restrict the client to the device flow.
  • Unmanaged local accounts keep their normal password login.

Login managers

GDM, SDDM and LightDM show the PAM messages (URL and code) as text; how they look depends on the theme. QR codes are not shown. A plain text console shows the same text. SSH shows nothing of it, because remote services never run the device flow.