Let PAM to provision users on their first login

Marco Trevisan marco at ubuntu.com
Fri Nov 20 14:54:24 AEDT 2026


On 19 nov 2026 at 18:55, Damien Miller wrote:
> On Thu, 19 Nov 2026, Marco Trevisan wrote:
>
>> I do understand that makes things a bit more complex, but the 
>> decision of
>> ignoring accounts that are not exposed by NSS at the time of the 
>> initial
>> lookup is something that is not something that matches with the idea 
>> of
>> NSS.
>
> Ok, but you get that you're basically asking us to reduce the 
> complexity
> in your part of the stack by taking on complexity in sshd. I don't 
> think
> this is a good deal for myself personally as one of the people who 
> would
> have to maintain this extra complexity, but I also believe that it's 
> not
> a good deal for our users, because that complexity is in a place 
> where a
> little mistake could result in a major security problem.

I see your fear, and I understand it.
But I also think that what we're proposing here is a real need for 
modern
authentication systems that rely on cloud providers and that they need
a way to authenticate in order to release user information from NSS.

I'm very aware that this is a sensible place of sshd and I would be 
happy
to go in very deep reviews and analysis to ensure that we're not making
mistakes, but it's still something that I feel that could be useful not
just to us, but to any modern authentication system that will want to 
rely
on both PAM MFA and a third party provider for user accounts.

I also think that the whole point of duplicating the checks on NSS would
just harden also other code-paths if anything.



More information about the openssh-unix-dev mailing list