Calling pam_chauthtok() isn't really needed since
an FTP user has no chance to change password anyway. Submitted by: Nick Leuta
This commit is contained in:
parent
e897216f45
commit
4cbc4ad644
@ -1297,13 +1297,9 @@ auth_pam(struct passwd **ppw, const char *pass)
|
||||
|
||||
if (rval == 0) {
|
||||
e = pam_acct_mgmt(pamh, 0);
|
||||
if (e == PAM_NEW_AUTHTOK_REQD) {
|
||||
e = pam_chauthtok(pamh, PAM_CHANGE_EXPIRED_AUTHTOK);
|
||||
if (e != PAM_SUCCESS) {
|
||||
syslog(LOG_ERR, "pam_chauthtok: %s", pam_strerror(pamh, e));
|
||||
rval = 1;
|
||||
}
|
||||
} else if (e != PAM_SUCCESS) {
|
||||
if (e != PAM_SUCCESS) {
|
||||
syslog(LOG_ERR, "pam_acct_mgmt: %s",
|
||||
pam_strerror(pamh, e));
|
||||
rval = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user