diff options
| author | KunoiSayami <[email protected]> | 2026-02-09 20:59:33 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2026-02-09 20:59:33 +0800 |
| commit | 735612ccfba150978d174fcc7d95b2ea3013ab9e (patch) | |
| tree | 24eff0b3bdbb4cd70246b90cf3eeec86acb62762 /src/test.rs | |
| parent | 2d3d384f2c32562df304d027c30e6986bd94c157 (diff) | |
refactor: Remove pam authentication method
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'src/test.rs')
| -rw-r--r-- | src/test.rs | 17 |
1 files changed, 0 insertions, 17 deletions
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()) - } } |
