mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
Do print error when pam_authenticate or pam_acct_mgmt fail
This commit is contained in:
@@ -126,6 +126,7 @@ int pret;
|
||||
|
||||
pret = pam_authenticate(pctx->ph, 0);
|
||||
if (pret != PAM_SUCCESS) {
|
||||
syslog(LOG_INFO, "PAM authenticate error: %s", pam_strerror(pctx->ph, pret));
|
||||
pctx->cr_ret = pret;
|
||||
goto wait;
|
||||
}
|
||||
@@ -140,6 +141,7 @@ int pret;
|
||||
}
|
||||
|
||||
if (pret != PAM_SUCCESS) {
|
||||
syslog(LOG_INFO, "PAM acct-mgmt error: %s", pam_strerror(pctx->ph, pret));
|
||||
pctx->cr_ret = pret;
|
||||
goto wait;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user