[Samba] Password syncing
Doug Curtis
doug.curtis at world-mail.org
Thu May 8 12:27:01 GMT 2003
At 09:17 AM 5/8/2003 +0200, NSC - NetworkServiceCenter wrote:
>hi doug,
>
> > I also have successfully configured Samba to change the samba password
> > from the windows client (using the change password feature in
> > Ctrl-Alt-Del). The only way I could get the password change from the
> > client to work was to set "unix password sync = no" but I would like
> > the functionality of this, so that when a user changes their samba
> > password from the client, it changes both of the passwords.
> >
> > Does anyone have an idea on how to fix this?
>
>maybe your passwordchat crashes! -> try to write a little shellscript that
>asks you for the password and writes this in a file. use this script as
>passwordprogramm and turn on sync. if passwordchange works now and in your
>file is the new pwd, you know definitively that the string you defined at
>passwordchat is not the same as the expected one of your passwordprogramm.
>
>suggestion 1:
>try to get your chat and pwdprogramm work together - look out: each
>character and also carriage return must be set
>
>suggestion 2:
>if your shellscript works use it ;-)
>let your script call the passwordprogramm!!!
>
>
>greetings
>thomas reisenbichler
Cool I will give that a try. I was messing with the password chat but I
kept getting stuck on the "Enter current Kereberos 5 password". It seemed
to not pass the old password properly when I was using %o with \n for the
CR to send the current password. I was getting this in my logs:
[2003/05/08 08:25:30.367993, 10, pid=3114, effective(0, 0), real(0, 0)]
smbd/chgpasswd.c:dochild(211)
Invoking '/usr/bin/passwd doug' as password change program.
[2003/05/08 08:25:30.614808, 100, pid=3113, effective(500, 500), real(0,
0)] smbd/chgpasswd.c:expect(265)
expect: expected [*kerberos*] received [Changing password for user doug.
Current Kerberos 5 password: ] match yes
[2003/05/08 08:25:30.614886, 10, pid=3113, effective(500, 500), real(0, 0)]
smbd/chgpasswd.c:expect(276)
expect: returning True
[2003/05/08 08:25:30.614919, 100, pid=3113, effective(500, 500), real(0,
0)] smbd/chgpasswd.c:expect(231)
expect: sending [
]
[2003/05/08 08:25:32.614826, 100, pid=3113, effective(500, 500), real(0,
0)] smbd/chgpasswd.c:expect(265)
expect: expected [*password*] received [
] match no
[2003/05/08 08:25:32.614879, 100, pid=3113, effective(500, 500), real(0,
0)] smbd/chgpasswd.c:expect(231)
expect: sending [
]
[2003/05/08 08:25:32.735992, 100, pid=3113, effective(500, 500), real(0,
0)] smbd/chgpasswd.c:expect(265)
expect: expected [*password*] received [passwd: Authentication failure
] match no
Thanks,
Doug
More information about the samba
mailing list