smb.conf Unix Password Sync chat script incorrect

Bug #50624 reported by Andy Parkinson
6
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: samba

The chat script for the Unix Password Sync option in the default example smb.conf file does not work correctly with the passwd program. The output of the passwd program must have changed.

The correct chat script, which works on breezy and dapper, is as follows:

passwd chat = *Enter*new*UNIX*password:* %n\n *Retype*new*UNIX*password:* %n\n *passwd:*password*updated*successfully*

The existing, incorrect, chat script in the example smb.conf is indicated to work against Debian Potato.

I'm using samba 3.0.22-1ubuntu3 and passwd 1:4.0.13-7ubuntu3

Related branches

Revision history for this message
Rouben (rouben) wrote :

Can anyone confirm this bug?

Revision history for this message
Fernando Ribeiro (ipsec) wrote :

Use "passwd chat debug = yes" and look smbd log to more informations.

Changed in samba:
status: Unconfirmed → Needs Info
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
Mathias Gug (mathiaz) wrote :

Reopening

Changed in samba:
status: Invalid → Incomplete
Steve Langasek (vorlon)
Changed in samba:
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

Here is a patch to the default smb.conf which enables password sync by default, via PAM, and updates the password chat script for compatibility with current Linux-PAM prompting. This patch is relative to the pristine Debian version of the smb.conf; for some reason that's not clear to me, the Ubuntu package currently has a different default passwd chat value than the Debian package does, and the Debian one works whereas the Ubuntu one doesn't. The password chat value provided here is still a change, generalized for use with systems that use something other than pam_unix.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package samba - 3.0.28-4ubuntu1

---------------
samba (3.0.28-4ubuntu1) hardy; urgency=low

  * Merge from Debian unstable, remaining changes:
    * debian/patches/VERSION.patch:
      - set SAMBA_VERSION_VENDOR_SUFFIX to Ubuntu
    * debian/smb.conf:
      - add "(Samba, Ubuntu)" to server string.
      - comment out the default [homes] shares and add more verbose comments to
        explain what they do and how they work (LP #27608). Also, add a
        comment about "valid users = %S" to show users how to restrict access
        to \\server\username to only username.
      - correct winbind enum comment inconsistency.
      - correct configuration directive inconsistences.
      - clarify comment for max log size.
    * debian/samba-common.config:
      - do not change priority to HIGH if dhclient3 is installed
      - use priority medium instead of high for the workgroup question
    * debian/winbind.files:
      - include additional files
    * debian/patches/fix-documentation.patch:
      - fix typo in net(8) man pages
    * Set Ubuntu maintainer address.
  * Dropped changes:
    - default passwd chat value is modified; the default password sync
      chat script from Debian now works out of the box. LP: #50624.

 -- Steve Langasek <email address hidden> Sun, 09 Mar 2008 12:44:53 +0000

Changed in samba:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.