diff options
Diffstat (limited to 'src/datastructures.rs')
| -rw-r--r-- | src/datastructures.rs | 4 |
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()) |
