PAM and passwd

Dag-ErlingSmørgrav des at des.no
Mon Dec 15 14:30:52 PST 2003


Adil Katchi <AdilK at sandvine.com> writes:
> This seems to indicate that the local users' info is loaded at PAM startup.
> Is this true?

It depends on the module.  Most PAM modules use getpwnam() to look up
the user, and will fail if it does not exist; some modules don't (for
instance, pam_ldap looks the user up in the LDAP directory even if
nsswitch isn't set up to use LDAP)

You probably want to write your own PAM authentication module to
handle account creation.  Feel free to contact me off-list for further
information on how to do this.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list