auth-api: fixup examples

These were missing the new client-ip parameter in the auth
function calls which was introduced to support `PAM_RHOST`.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-07-10 09:05:47 +02:00
parent ec5e2a5d90
commit 4ca8dbf74f

View File

@ -43,9 +43,9 @@ async fn run() -> Result<(), Error> {
let realm = proxmox_auth_api::Pam::new("test");
if changepass {
realm.store_password(&username, &password)?;
realm.store_password(&username, &password, None)?;
} else {
realm.authenticate_user(&username, &password).await?;
realm.authenticate_user(&username, &password, None).await?;
}
Ok(())