8 + ˆl–Ü4ý(”†»â‚fãM\eå1hß¿ ƒyà3_‡I|¥‰ÓMÄÃ"c The Linux-PAM Module Writers' Guide

The Linux-PAM Module Writers' Guide

Andrew G. Morgan

Thorsten Kukuk

Version 1.1.2, 31. August 2010

Abstract

This manual documents what a programmer needs to know in order to write a module that conforms to the Linux-PAM standard.It also discusses some security issues from the point of view of the module programmer.


Table of Contents

1. Introduction
1.1. Description
1.2. Synopsis
2. What can be expected by the module
2.1. Getting and setting PAM_ITEMs and data
2.1.1. Set module internal data
2.1.2. Get module internal data
2.1.3. Setting PAM items
2.1.4. Getting PAM items
2.1.5. Get user name
2.1.6. The conversation function
2.1.7. Set or change PAM environment variable
2.1.8. Get a PAM environment variable
2.1.9. Getting the PAM envir