diff --git a/pam/pam_fprintd.c b/pam/pam_fprintd.c index c7bb617..58d15d7 100644 --- a/pam/pam_fprintd.c +++ b/pam/pam_fprintd.c @@ -565,7 +565,7 @@ do_verify (sd_bus *bus, } else if (str_equal (data->result, "verify-unknown-error")) { - return PAM_AUTH_ERR; + return PAM_AUTHINFO_UNAVAIL; } else if (str_equal (data->result, "verify-disconnected")) { diff --git a/tests/pam/test_pam_fprintd.py b/tests/pam/test_pam_fprintd.py index a874b64..be66818 100644 --- a/tests/pam/test_pam_fprintd.py +++ b/tests/pam/test_pam_fprintd.py @@ -97,7 +97,7 @@ class TestPamFprintd(dbusmock.DBusTestCase): ] self.device_mock.SetVerifyScript(script) - tc = pypamtest.TestCase(pypamtest.PAMTEST_AUTHENTICATE, expected_rv=PAM_AUTH_ERR) + tc = pypamtest.TestCase(pypamtest.PAMTEST_AUTHENTICATE, expected_rv=PAM_AUTHINFO_UNAVAIL) res = pypamtest.run_pamtest("toto", "fprintd-pam-test", [tc], [ 'unused' ]) self.assertRegex(res.info[0], r'Swipe your left little finger across the fingerprint reader')