diff pam-sober/test.c @ 35:3b2ff50db010

Merge pull request #8 from bossmc/master Various enhancements/fixes
author Anthony Nowell <anowell@gmail.com>
date Wed, 08 Jun 2022 09:28:13 -0700
parents ec70822cbdef
children
line wrap: on
line diff
--- a/pam-sober/test.c	Tue Jun 07 23:22:11 2022 -0700
+++ b/pam-sober/test.c	Wed Jun 08 09:28:13 2022 -0700
@@ -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");