diff --git a/pam/pam_fprintd.c b/pam/pam_fprintd.c index 9c4adcf..8cbd01c 100644 --- a/pam/pam_fprintd.c +++ b/pam/pam_fprintd.c @@ -351,7 +351,7 @@ verify_started_cb (sd_bus_message *m, if (sd_bus_error_has_name (error, "net.reactivated.Fprint.Error.NoEnrolledPrints")) { pam_syslog (data->pamh, LOG_DEBUG, "No prints enrolled"); - data->verify_ret = PAM_USER_UNKNOWN; + data->verify_ret = PAM_AUTHINFO_UNAVAIL; } else { diff --git a/tests/pam/test_pam_fprintd.py b/tests/pam/test_pam_fprintd.py old mode 100755 new mode 100644 index c17dfbe..be66818 --- a/tests/pam/test_pam_fprintd.py +++ b/tests/pam/test_pam_fprintd.py @@ -177,7 +177,7 @@ class TestPamFprintd(dbusmock.DBusTestCase): ] self.device_mock.SetVerifyScript(script) - tc = pypamtest.TestCase(pypamtest.PAMTEST_AUTHENTICATE, expected_rv=PAM_USER_UNKNOWN) + tc = pypamtest.TestCase(pypamtest.PAMTEST_AUTHENTICATE, expected_rv=PAM_AUTHINFO_UNAVAIL) res = pypamtest.run_pamtest("toto", "fprintd-pam-test", [tc], [ 'unused' ]) def test_pam_fprintd_blocks_unexpected_auth(self):