diff --git a/Cargo.toml b/Cargo.toml index 31ef78758..570027f0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,10 +24,6 @@ members = [ "sketching" ] -exclude = [ - "kanidm_unix_int/pam_tester" -] - [workspace.package] version = "1.1.0-alpha.11-dev" authors = [ diff --git a/kanidm_unix_int/pam_tester/Cargo.toml b/kanidm_unix_int/pam_tester/Cargo.toml deleted file mode 100644 index bf0a279d8..000000000 --- a/kanidm_unix_int/pam_tester/Cargo.toml +++ /dev/null @@ -1,14 +0,0 @@ -[package] -name = "pam_tester" - -version.workspace = true -authors.workspace = true -rust-version.workspace = true -edition.workspace = true -license.workspace = true -homepage.workspace = true -repository.workspace = true - -[dependencies] -pam = "^0.7.0" - diff --git a/kanidm_unix_int/pam_tester/src/main.rs b/kanidm_unix_int/pam_tester/src/main.rs deleted file mode 100644 index 2e60fcf62..000000000 --- a/kanidm_unix_int/pam_tester/src/main.rs +++ /dev/null @@ -1,23 +0,0 @@ -extern crate pam; -pub fn main() { - let service = "pam_test"; - let user = "testuser"; - let password = "eti8aoshaigeeboh1ohF7rieba0quaThesoivae0"; - - let mut auth = pam::Authenticator::with_password(service).unwrap(); - auth.get_handler().set_credentials(user, password); - let r = auth.authenticate(); - println!("auth -> {:?}", r); - if r.is_ok() { - println!("Successfully authenticated!"); - let r = auth.open_session(); - println!("session -> {:?}", r); - if r.is_ok() { - println!("Successfully opened session!"); - } else { - println!("Session failed =/"); - } - } else { - println!("Authentication failed =/"); - } -}