[Samba] samba4 password sync howto?

d tbsky tbskyd at gmail.com
Sun Jun 9 20:52:05 MDT 2013

   after searching the mail archive, I found the same question was asked
last month. and indeed samba4 didn't support "unix password sync"
currently. I am surprised because it seems an very easy function =>  just
call some external program when password change.

   anyway, I wonder if there are some alternative ways to do this now? I
found someone store the password in cleartext but that's not a good idea
for me. in theory, can I install another windows 2008 R2 domain controller
and use windows SSOD to do the job? and when samba4 finally has the ability
to do the work, I can shutdown windows domain controller.  is that
workable? or I should wait for samba 4.1 or even 4.2?

2013/6/10 d tbsky <tbskyd at gmail.com>

> hi:
>     we have some service which store local password. and we want to sync
> samba4 (4.0.5) passwords to them.
>      when we use windows server before, we can use ssod and write our own
> program to do that.
>      at first I think it should be easy with settings like below:
>      unix password sync = yes
>      passwd program = /share/bin/samba_passwd_sync.pl %u
>      passwd chat = *new*password* %n\n *changed*
>      passwd chat debug = Yes
>      log level = 100
> but when I try to change password at windows ADUC nothing happened. I open
> log.samba, I didn't see anything about password sync, and of course the
> custom script is not run.
>      do I miss something? is "unix password sync" supported in samba4? at
> least the option is at the man page...
>       thanks a lot for help!
> Regards,
> tbskyd

More information about the samba mailing list