misc/76494: passwd does not indicate a successful change - causes
problems with Samba password sync
Rob Mason
rob at bsdbox.homeunix.com
Thu Jan 20 01:50:22 PST 2005
>Number: 76494
>Category: misc
>Synopsis: passwd does not indicate a successful change - causes problems with Samba password sync
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 20 09:50:21 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Rob Mason
>Release: 5-STABLE
>Organization:
>Environment:
FreeBSD huygens.bsdbox 5.3-STABLE FreeBSD 5.3-STABLE #1: Fri Dec 3 17:57:39 GMT 2004 masonr at huygens.bsdbox:/usr/obj/usr/src/sys/BSDBOX i386
>Description:
The passwd command on 4-STABLE output the text "passwd: done" when a password was changed. This feature is used by the Samba-3 port to indicate a successful change in the 'passwd chat' config option. 5-STABLE does not indicate that the password change is successful
>How-To-Repeat:
Run passwd on 4-STABLE and compare the output to passwd on 5-STABLE
>Fix:
Apply the following patch:
*** 157,164 ****
--- 157,165 ----
/* set new password */
pam_err = pam_chauthtok(pamh, 0);
pam_check("pam_chauthtok");
end:
+ if (pam_err == PAM_SUCCESS) fprintf(stderr, "Password Changed\n");
pam_end(pamh, pam_err);
exit(pam_err == PAM_SUCCESS ? 0 : 1);
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list