PacktLib: Pluggable Authentication Modules: The Definitive Guide to PAM for Linux SysAdmins and C Developers

Pluggable Authentication Modules

Credits

About the Author

About the Reviewers

Preface

Introduction to PAM

History of PAM

PAM Solves the Authentication Problem

Need for PAM

Installing Linux-PAM

PAM Implementations

Summary

Theory of Operation

PAM File System Layout

The PAM Framework

Online Documentation

Services

Management Groups

Stacking

Control Flags

Consolidating Your PAM Configuration

Securing Your Environment

Summary

Testing and Debugging

Where to Test?

Leaving a Back Door Open

Test Cases

Getting Backstage

The pamtester Utility

Automating PAM Tests

Bad Example

Summary

Common Modules

Parameters

Modules Related to User Environments

Modules Used to Restrict Access

Modules Related to Back-End Storage

Summary

Recipes

Encrypted Home Directories

Working with Secure Shell

Apache htaccess Made Smart

Directory Services

Limiting r-Services

Limiting Resources

Summary

Developing with PAM

PAM-aware Applications

Developing your Own PAM Modules

Summary

Source code

Source code

Source code