Let PAM to provision users on their first login

Marco Trevisan marco at ubuntu.com
Fri Nov 20 08:48:16 AEDT 2026


Hi,

On 19 nov 2026 at 15:14, Klaus Ethgen wrote:

>> In Ubuntu we have authd [1], which authenticates users against an
>> identity provider (Entra ID, Google, ...) and creates the local
>> account on first login; other services (directory or cloud identity
>> integrations, on-demand provisioning on servers), relying on samba
>> or SSSD have the same need.
>
> Why don't you just provide nss with the same backend that you do with
> pam? Same way as sssd and samba does.
>
> Either the user exists (and nss and pam both know about that) or it 
> does
> not.

We do provide NSS with the very same backend.
But users may not exist *locally* yet and there's no way to ensure if an
user exists unless we've gone through a full authentication through a
cloud provider.

Knowing if an user existed before it has even logged-in it's just not
possible in such context.



More information about the openssh-unix-dev mailing list