pam-auth 0.1.0

Safe Rust wrapper for PAM authentification
docs.rs failed to build pam-auth-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: pam-auth-0.5.5

pam-auth Build Status

Safe Rust bindings to Linux Pluggable Authentication Modules (PAM). Currently only support basic username/password authentication.

Usage

  1. Add pam-auth to your Cargo.toml:
[dependencies]
pam-auth = "0.0.4-pre1"
  1. Use the static function to login
extern crate pam_auth;
pub fn main() {
    let service: "<yourapp>";
    let user: "<user>";
    let password: "<pass>";

    let success = pam_auth::login(service, user, pass);
    if success {
        println!("Login succeded!");
    }
    else {
        println!("Login failed =(");
    }
}

TODO:

  • Implement basic user/password authentication
  • Add documentation
  • Verify current conv does not leak memory
  • Allow custom conv functions to be passed (in pam-sys?)
  • Code cleanup