|0.3.1||Nov 18, 2021|
|0.3.0||Mar 2, 2021|
|0.2.0||Feb 12, 2021|
|0.1.2||Feb 12, 2021|
#70 in Unix APIs
92 downloads per month
Used in rudo
- Add the following to your Cargo.toml:
[dependencies] pam-client = "0.3"
- Read the crate documentation
pam-client crate a safe API to the application-faced parts of PAM.
This includes in detail:
- PAM authentication, account validation and session management
- PAM password changing
- Three sample conversation handler implementations
- Custom conversation handlers via trait implementation
- On-the-fly switching of the conversation handler
- Suspendable RAII session handling
- Methods for refreshing and reinitialization of PAM credentials
- PAM environment list support with easy integration to
- Getters and setters for all standard and most Linux-specific PAM items.
- Raw access methods for non-standard PAM items
- Errors mostly convertible to
cli: by default a conversation handler for command line applications is included. Disable this feature if you don't need it to remove a dependency on
serde: enable this feature to get
serde(de-)serialization support for the error, flag and token types and the default conversation handlers. Additionally
EnvListbecomes serializable into
The minimum supported Rust toolchain version is Rust 1.43.0.
Currently tested up to version 1.52.0-nightly.
pam-client crate is currently only tested on Linux, but support is
implemented for Solaris and OpenPAM-based platforms like NetBSD.
This crate follows semantic versioning with the additional
promise that below
1.0.0 backwards-incompatible changes will not be
introduced with only a patch-level version number change.
This crate provides safe wrappers for the same library as
This crate aims to provide safe wrappers for different use cases at
the expense of a slightly more complex interface, while
an easier interface, but restricts the order of operations to the
most common use cases.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above including compatibility with secondary licenses, as defined by the MPL.