🍳 nonstick
Nonstick lets you use PAM (Pluggable Authentication Modules) from Rust without getting stuck in unsafe code.
Status
This is currently somewhat incomplete.
It provides fairly robust functionality for developing PAM modules (i.e., backends that PAM calls to authenticate users or do something similar). Linux-PAM is the only tested PAM implementation, but it compiles against OpenPAM.
If you’re looking for a library to implement a PAM client (i.e., something that authenticates using PAM), consider the pam crate for now.
APIs are likely to break before v0.1.0, but thereafter should stabilize to an eventual 1.0 release. After v0.1.0, the shape of the API should be mostly formed, and most of what happens will be adding new features.
Goals include:
- Bindings for PAM clients.
- Additional PAM features, like environment variables.
- Way more documentation.
Credits
This is a direct fork of Anthony Nowell’s pam-rs/pam-bindings crate.
pam-rs was in turn inspired by: