[Samba] passwd chat parameter "%o"

Jan Lüdeke jal at oss.de
Thu Jun 10 12:49:36 GMT 2004


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:

Does anybody has an idea?

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

--------------


More information about the samba mailing list