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:
Yaroslav Tykhiy 2004-11-22 11:02:42 +00:00
parent e897216f45
commit 4cbc4ad644
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137986

View file

@ -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;
}
}