Altering entered PAM username

Jesse Zbikowski embeddedlinuxguy at gmail.com
Thu Nov 20 19:34:01 UTC 2008


Hi Julian,

2008/11/20 Julián de Navascués <julian.navascues at gmail.com>:
> I would like to know what else is needed to map users...

You don't mention what application is calling your PAM module, but I
assume it is OpenSSH.  This is not totally trivial, as OpenSSH only
accepts authorization from valid usernames -- i.e., ones which exist
in getpwnam().  There is a patch to work around this but I have only
applied it to older versions of OpenSSH (4.x not 5.x).

https://bugzilla.mindrot.org/show_bug.cgi?id=1215




More information about the Pam-list mailing list