From 735612ccfba150978d174fcc7d95b2ea3013ab9e Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Mon, 9 Feb 2026 20:59:33 +0800 Subject: refactor: Remove pam authentication method Signed-off-by: KunoiSayami --- src/test.rs | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/test.rs') diff --git a/src/test.rs b/src/test.rs index e6e1bbc..a1d961b 100644 --- a/src/test.rs +++ b/src/test.rs @@ -29,8 +29,6 @@ mod core { password_hash::{PasswordHash, PasswordHasher, PasswordVerifier, SaltString}, }; use redis::AsyncCommands; - #[cfg(feature = "pam")] - use std::borrow::BorrowMut; use std::io::{Read, Write}; use std::path::Path; use std::path::PathBuf; @@ -366,19 +364,4 @@ mod core { .block_on(clear_redis_setting()) .unwrap(); } - - #[cfg(feature = "pam")] - #[ignore] - #[test] - fn test_pam() { - let service = option_env!("pam_service").unwrap_or("system-auth"); - let user = option_env!("pam_user").unwrap_or("user"); - let password = option_env!("pam_password").unwrap_or("password"); - - let mut auth = pam::Client::with_password(service).unwrap(); - auth.conversation_mut() - .borrow_mut() - .set_credentials(user, password); - assert!(auth.authenticate().is_ok() && auth.open_session().is_ok()) - } } -- cgit v1.3.1