Bug 2666 - "%o" used in passwd chat doesn't work
"%o" used in passwd chat doesn't work
Product: Samba 3.0
Classification: Unclassified
Component: File Services
All Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-04-28 02:41 UTC by Arno
Modified: 2006-04-10 07:48 UTC (History)
0 users

See Also:


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
  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 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).