Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2005 09:46:31 GMT
From:      Rob Mason <rob@bsdbox.homeunix.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/76494: passwd does not indicate a successful change - causes problems with Samba password sync
Message-ID:  <200501200946.j0K9kVMh093452@www.freebsd.org>
Resent-Message-ID: <200501200950.j0K9oMsT088165@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501200946.j0K9kVMh093452>