diff options
Diffstat (limited to 'modules/pam_unix/pam_unix.c')
-rw-r--r-- | modules/pam_unix/pam_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/pam_unix/pam_unix.c b/modules/pam_unix/pam_unix.c index 2be7e75..ae824f5 100644 --- a/modules/pam_unix/pam_unix.c +++ b/modules/pam_unix/pam_unix.c @@ -18,6 +18,7 @@ #ifndef __linux__ #include <login_cap.h> /* for BSD login classes */ +#include <util.h> /* libutil functions */ #else #include <shadow.h> /* for linux boxes */ #endif @@ -64,7 +65,6 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, PAM_LOG("Authenticating user: [%s]", user); - puts("USER GOT"); /* get password */ if (pwd != NULL) { @@ -73,7 +73,8 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, if (pass[0] == '\0') { if (!(flags & PAM_DISALLOW_NULL_AUTHTOK) && openpam_get_option(pamh, PAM_OPT_NULLOK)){ - PAM_LOG("User [%s] has empty password. Authentication succesfull."); + PAM_LOG("User [%s] has empty password. \ + Authentication succesfull.", user); return (PAM_SUCCESS); } @@ -124,7 +125,6 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, pam_err = PAM_AUTH_ERR; } else { PAM_LOG("Authentication completed succesfully."); - puts("SUCCESS!"); pam_err = PAM_SUCCESS; } |