[Samba] passwd chat debug

Vizitiu, Ciprian CVizitiu at gbif.org
Mon Jul 14 12:16:10 GMT 2003


 
> I'm trying to set up my "passwd chat", then I was adviced to use:
> 
> passwd chat debug = yes
> debug level = 103
> encryp passwords = no
> 
> But I can't find the "chat" inside log.smbd
> 
> What am I doing wrong?

You're looking in the wrokg place... Look in the machine.log where "machine"
is the smbname of the WS trying to change the password you should see
something like this:

[2003/07/14 16:08:24, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2003/07/14 16:08:24, 3] smbd/chgpasswd.c:chat_with_program(430)
  Dochild for user zoko (uid=0,gid=0)
[2003/07/14 16:08:24, 10] smbd/chgpasswd.c:dochild(211)
  Invoking '/usr/bin/passwd zoko' as password change program. [2003/07/14
16:08:26, 100] smbd/chgpasswd.c:expect(265)
  expect: expected [*New*password*] received [Changing password for user
zoko. New password: ] match no
[2003/07/14 16:08:28, 100] smbd/chgpasswd.c:expect(265)
  expect: expected [*New*password*] received [] match no [2003/07/14
16:08:28, 10] smbd/chgpasswd.c:expect(276)
  expect: returning False
[2003/07/14 16:08:28, 3] smbd/chgpasswd.c:talktochild(302)
  Response 1 incorrect
[2003/07/14 16:08:28, 3] smbd/chgpasswd.c:chat_with_program(363)
  Child failed to change password: zoko
[2003/07/14 16:08:28, 3] smbd/chgpasswd.c:chat_with_program(401)
  The process exited while we were waiting

>From the above "dialog" it should be clear that samba is expecting something
different than what it is receiving. Question is why * doesn't really match
like it says in the man page?! Anyway carefully crafting the chat sequence
you can overcome this "small issue"... ;-)



More information about the samba mailing list