Bug 2666 - "%o" used in passwd chat doesn't work
Summary: "%o" used in passwd chat doesn't work
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.9
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-28 02:41 UTC by Arno
Modified: 2006-04-10 07:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arno 2005-04-28 02:41:44 UTC
I've tried to setup my brand new Samba 3 server on an x86 Linux machine but it
turns out that "%o" (for old password) doesn't work anymore for "passwd chat"
(while it did work for Solaris with Samba 2.2). I used "passwd chat debug" and
expect just shows an empty password when the old password is filled in (instead
of the one specified to smbpasswd). I've used these settings for smb.conf:

  passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n
*The*NIS*password*has*been*changed*
  passwd chat debug = yes

smbd.log shows:

  expect: expected [*old*password*] received [Changing NIS account information
for proto on einstein.
  Please enter old password:] match yes
[2005/04/28 11:41:14, 10] smbd/chgpasswd.c:expect(286)
  expect: returning True
[2005/04/28 11:41:14, 100] smbd/chgpasswd.c:expect(238)
  expect: sending [
  ]
[2005/04/28 11:41:14, 10] lib/util_sock.c:read_socket_with_timeout(305)
  read_socket_with_timeout: timeout read. select timed out.
[2005/04/28 11:41:14, 100] smbd/chgpasswd.c:expect(275)
  expect: expected [*new*password*] received [
  Changing NIS password for proto on einstein.
  Please enter new password:] match yes
Comment 1 Gerald (Jerry) Carter (dead mail address) 2006-04-10 07:48:49 UTC
when using encrypted passwords, we never have the old passord so 
we cannot fix this.  The password command has to be able to reset the user password as root without the old password (i.e. run on the NIS master).