From e49fbbe547cc1c7310398238411ab928520b3445 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 12 Feb 2013 21:12:35 +0100 Subject: [PATCH] Allow NULL PAM auth token. This would allow to have password authentication on certain users that have a certificate. --- src/pam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pam.c b/src/pam.c index d0fb1fcb..15031738 100644 --- a/src/pam.c +++ b/src/pam.c @@ -64,14 +64,14 @@ struct passwd * pwd; return -1; } - pret = pam_authenticate(ph, PAM_SILENT|PAM_DISALLOW_NULL_AUTHTOK); + pret = pam_authenticate(ph, PAM_SILENT); if (pret != PAM_SUCCESS) { syslog(LOG_AUTH, "Error in PAM authentication: %s", pam_strerror(ph, pret)); ret = -1; goto fail; } - pret = pam_acct_mgmt(ph, PAM_SILENT|PAM_DISALLOW_NULL_AUTHTOK); + pret = pam_acct_mgmt(ph, PAM_SILENT); if (pret != PAM_SUCCESS) { syslog(LOG_AUTH, "Error in PAM account management: %s", pam_strerror(ph, pret)); ret = -1;