pam-sys2

Crates.iopam-sys2
lib.rspam-sys2
version1.0.0
created_at2025-08-20 19:55:01.886275+00
updated_at2025-08-20 19:55:01.886275+00
descriptionFFI wrappers for the Linux Pluggable Authentication Modules (PAM)
homepage
repositoryhttps://github.com/lechatp/pam-sys.git
max_upload_size
id1803903
size68,480
LeChatP (LeChatP)

documentation

https://docs.rs/pam-sys/

README

pam-sys2 - Rust FFI bindings to the Linux and Open Pluggable Authentication Modules (PAM)

Crates.io Documentation License

This crate uses bindgen to generate the raw FFI definitions for PAM. For a rustified API consider using pam.

Fork maintenance

Hello! I forked this crate to provide maintenance and updates, since the original author has not been active for several years. This version integrates the latest changes from the original repository and adds some improvements, such as support for both Linux-PAM and OpenPAM, updated bindings generation, and with a functionnal CI.

While I will do my best to keep this fork up-to-date and functional, please note that I strongly recommend using nonstick instead of this crate for new projects.

Changes

This crate is a fork of the original pam-sys crate, with the following changes:

  • Updated to use the latest version of bindgen for better compatibility and features.
  • update Rust edition to 2021
  • Added support for both Linux-PAM and OpenPAM (Merging 1wilkens/pam-sys/pulls/28 by @coastalwhite with some edits).
  • Use pre-generated bindings for Linux-PAM by default (by @coastalwhite).
  • Fixing zigbuild issue (1wilkens/pam-sys/issues/32)
  • Added generate-bindings feature to control when bindings are generated.

Supported Rust versions (MSRV)

The library is only continuously built against Rust stable, beta and nightly but as it does not use a lot of new language features it should probably compile on older versions as well. The MSRV is mostly determined by the version of bindgen used. If you encounter problems building on older versions and a small fix can be applied to make the build succeed, consider opening a pull request.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 0

cargo fmt