Mercurial > crates > nonstick
diff pam-sober/test.c @ 34:ec70822cbdef
Overhaul
author | Andy Caldwell <andrew.caldwell@metaswitch.com> |
---|---|
date | Sun, 24 Apr 2022 03:42:11 +0100 |
parents | 53efbcff805d |
children |
line wrap: on
line diff
--- a/pam-sober/test.c Thu Jul 11 19:13:19 2019 -0700 +++ b/pam-sober/test.c Sun Apr 24 03:42:11 2022 +0100 @@ -23,18 +23,19 @@ // Are the credentials correct? if (retval == PAM_SUCCESS) { - printf("Credentials accepted.\n"); + printf("PAM module initialized\n"); retval = pam_authenticate(pamh, 0); } // Can the accound be used at this time? if (retval == PAM_SUCCESS) { - printf("Account is valid.\n"); + printf("Credentials accepted.\n"); retval = pam_acct_mgmt(pamh, 0); } // Did everything work? if (retval == PAM_SUCCESS) { + printf("Account is valid.\n"); printf("Authenticated\n"); } else { printf("Not Authenticated\n");