Bug 1456 - unix password sync ... requesting old password
Summary: unix password sync ... requesting old password
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts (show other bugs)
Version: 3.0.4
Hardware: x86 Windows XP
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-11 03:18 UTC by Jan Lüdeke
Modified: 2005-08-24 10:15 UTC (History)
0 users

See Also:


Attachments
change the 2. argument from chat_with_program(...) to const (401 bytes, patch)
2004-08-24 04:29 UTC, Helmut Heinreichsberger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lüdeke 2004-06-11 03:18:13 UTC
Hi,

with samba-3.0.4 i try to sync the unix-password with samba.
But it does not work, because the "passwd program" failed.
It looks like, the variable "%o" does not work anymore,
because an empty string will be sent.



here is my config and the log:

[global]
  unix password sync = yes
  passwd program = /usr/bin/passwd %u
  passwd chat = *password* %o\n *password* %n\n *password* %n\n *changed*


[2004/06/10 14:15:20, 3] smbd/chgpasswd.c:chat_with_program(425)
  chat_with_program: Dochild for user jal (uid=0,gid=0) (as_root = Yes)
[2004/06/10 14:15:20, 10] smbd/chgpasswd.c:dochild(218)
  Invoking '/usr/bin/passwd jal' as password change program.
[2004/06/10 14:15:20, 10] lib/util_sock.c:read_socket_with_timeout(288)
  read_socket_with_timeout: timeout read. select timed out.
[2004/06/10 14:15:20, 100] smbd/chgpasswd.c:expect(275)
  expect: expected [*password*] received [Changing password for jal.
  Enter login(LDAP) password: ] match yes
[2004/06/10 14:15:20, 10] smbd/chgpasswd.c:expect(286)
  expect: returning True
[2004/06/10 14:15:20, 100] smbd/chgpasswd.c:expect(238)
  expect: sending [
  ]
[2004/06/10 14:15:20, 10] lib/util_sock.c:read_socket_with_timeout(288)
  read_socket_with_timeout: timeout read. select timed out.
[2004/06/10 14:15:20, 100] smbd/chgpasswd.c:expect(275)
  expect: expected [*password*] received [
  Password change aborted
  Enter login(LDAP) password: ] match yes
[2004/06/10 14:15:20, 10] smbd/chgpasswd.c:expect(286)
  expect: returning True
[2004/06/10 14:15:20, 100] smbd/chgpasswd.c:expect(238)
  expect: sending [test1
  ]
[2004/06/10 14:15:20, 10] lib/util_sock.c:read_socket_with_timeout(288)
  read_socket_with_timeout: timeout read. select timed out.
[2004/06/10 14:15:20, 100] smbd/chgpasswd.c:expect(275)
  expect: expected [*password*] received [
  LDAP Password incorrect: try again
  Enter login(LDAP) password: ] match yes
[2004/06/10 14:15:20, 10] smbd/chgpasswd.c:expect(286)
  expect: returning True
[2004/06/10 14:15:20, 100] smbd/chgpasswd.c:expect(238)
  expect: sending [test1
  ]
[2004/06/10 14:15:22, 10] lib/util_sock.c:read_socket_with_timeout(288)
  read_socket_with_timeout: timeout read. select timed out.
[2004/06/10 14:15:22, 100] smbd/chgpasswd.c:expect(275)
  expect: expected [*changed*] received [
  LDAP Password incorrect: try again
  Enter login(LDAP) password: ] match no
[2004/06/10 14:15:22, 2] smbd/chgpasswd.c:expect(281)
  expect: Success
[2004/06/10 14:15:22, 3] smbd/chgpasswd.c:talktochild(312)
  Response 4 incorrect
[2004/06/10 14:15:22, 3] smbd/chgpasswd.c:chat_with_program(368)
  chat_with_program: Child failed to change password: jal
Comment 1 Volker Lendecke 2004-06-18 00:49:54 UTC
%o can only work if you are using plain text passwords. The default 
changed from samba 2 to samba 3, and nowadays you don't want non-encrypted
passwords anymore.

Volker
Comment 2 Helmut Heinreichsberger 2004-08-24 04:29:28 UTC
Created attachment 615 [details]
change the 2. argument from chat_with_program(...) to const
Comment 3 Helmut Heinreichsberger 2004-08-24 04:33:58 UTC
Comment on attachment 615 [details]
change the 2. argument from chat_with_program(...) to const

sorry this patch is for #1658
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:15:26 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.