mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
Allow NULL PAM auth token. This would allow to have password authentication on certain users that have a certificate.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user