Safe Rust bindings to Linux Pluggable Authentication Modules (PAM). Currently only support basic username/password authentication.
pam-auth
to your Cargo.toml:
toml
[dependencies]
pam-auth = "0.0.4-pre1"
Use the static function to login
```rust
extern crate pam_auth;
pub fn main() {
let service: "
let success = pam_auth::login(service, user, pass); if success { println!("Login succeded!"); } else { println!("Login failed =("); } } ```
conv
does not leak memoryconv
functions to be passed (in pam-sys?)