aboutsummaryrefslogtreecommitdiff
path: root/src/datastructures.rs
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2024-08-30 19:55:36 +0800
committerKunoiSayami <[email protected]>2024-08-30 19:55:36 +0800
commit1c9133be32345593b64cb4fff7fe28206adb3fb8 (patch)
tree58e5a16a651c40d5aa9eec1a8205314ee6c6edef /src/datastructures.rs
parentf7506a53b927191f5865a5b9f84c065abd7c1ec7 (diff)
chore: Update crates
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'src/datastructures.rs')
-rw-r--r--src/datastructures.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datastructures.rs b/src/datastructures.rs
index 29c852c..ef5c8a4 100644
--- a/src/datastructures.rs
+++ b/src/datastructures.rs
@@ -728,8 +728,8 @@ impl Authorizer for PAMAuthorizer {
async fn verify(&self, user: &str, password: &str) -> Result<bool> {
let service = self.provider();
- let mut auth = pam::Authenticator::with_password(service).unwrap();
- auth.get_handler()
+ let mut auth = pam::Client::with_password(service).unwrap();
+ auth.conversation_mut()
.borrow_mut()
.set_credentials(user, password);
Ok(auth.authenticate().is_ok() && auth.open_session().is_ok())