mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137986
|
@ -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…
Reference in a new issue