diff --git a/Cargo.lock b/Cargo.lock index 4f13470..f28bd56 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -267,14 +267,6 @@ dependencies = [ "xcb-xembed", ] -[[package]] -name = "bscreensaver-auth" -version = "0.1.0" -dependencies = [ - "anyhow", - "pam", -] - [[package]] name = "bscreensaver-command" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index 9dfeff5..dbb3dab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,6 @@ [workspace] members = [ "async-xcb", - "auth", "command", "locker", "dbus-service", diff --git a/auth/Cargo.toml b/auth/Cargo.toml deleted file mode 100644 index efbf0b0..0000000 --- a/auth/Cargo.toml +++ /dev/null @@ -1,8 +0,0 @@ -[package] -name = "bscreensaver-auth" -version = "0.1.0" -edition = "2021" - -[dependencies] -anyhow = "1" -pam = "0.7" diff --git a/auth/src/main.rs b/auth/src/main.rs deleted file mode 100644 index 01b77bd..0000000 --- a/auth/src/main.rs +++ /dev/null @@ -1,16 +0,0 @@ -use std::io; - -fn main() -> anyhow::Result<()> { - let stdin = io::stdin(); - - let mut username = String::new(); - stdin.read_line(&mut username)?; - let mut password = String::new(); - stdin.read_line(&mut password)?; - - let mut authenticator = pam::Authenticator::with_password("xscreensaver")?; - authenticator.get_handler().set_credentials(username.trim(), password.trim()); - authenticator.authenticate()?; - - Ok(()) -}