Let PAM to provision users on their first login

Marco Trevisan marco at ubuntu.com
Fri Nov 20 15:01:29 AEDT 2026


>
> From the perspective of the authentication system, the user either
> exists or does not.  However, I suspect NSS doesn't have the needed
> credentials to query if a user exists.  PAM, on the other hand, can
> include the user's credentials as part of its request, and can store
> the server's information for later use.

Exactly...

> Giving NSS the ability to query if any user exists would be a security
> risk (in case the server was compromised) and gain nothing other than
> making OpenSSH work.

Yeah, that is the whole point.



More information about the openssh-unix-dev mailing list