Registry / auth / pam
library0.8.0rscratesunverified

Safe Rust wrappers for PAM authentication.

# Cargo.toml [dependencies] pam = "0.8.0"
INSTALL
IMPORT
SIG · PAM
P
pam
authrustv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Authenticator
use pam::Authenticator;

Creates a PAM authenticator and retrieves the user.

use pam::Authenticator; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut auth = Authenticator::new("service")?; auth.get_user(None)?; Ok(()) }
Debug
Known issues
gotchaRequires PAM libraries installed on the system.
fix
Install libpam-dev (Linux) or equivalent.
affects: >=0.8.0
Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
pam — cargo add pam · libregistry