#34 Patch provides VUID and VHOME for PAM aware applications

open
nobody
None
5
2015-02-08
2009-01-27
James Harrell
No

This patch provides the remote user ID and remote user home directory information of the authenticated user to the calling application. Used by extending the "passwdcolumn" during the AUTH phase, and populates two PAM environment context variables VUID and VHOME based on the existence of a second and third column in the AUTH SQL select.

In a nutshell, this means that a calling application (see my next patch at vsftp) can retrieve and use UID and Home directory information direct from the PAM authentication module.

Technically it's generic enough that you can choose any two SQL columns (or expressions), and pass this information along to the calling application.

Patched against pam_mysql-0.7RC1.

Discussion

  • James Harrell
    James Harrell
    2009-01-27

    pam_mysq-0.7RC1-vuid.patch