[Samba] samba4 password sync howto?

d tbsky tbskyd at gmail.com
Sun Jun 9 21:54:24 MDT 2013


hi:
    winbind and ldap authentication are both used when services are
supported. but some services has local password database and need external
script to sync them.

    I think it is not too hard if I don't want a perfect solution. if SSOD
can not work, can someone give me a hint which source file I can modify, so
samba can call an external script when password change.

    thanks a lot for help!!

Regards,
tbskyd


2013/6/10 David Gonzalez - [DGHVOIP] <info at dghvoip.com>

Hey,

I'm no expert on Samba 4 and I might be wrong but can't you use winbind for
that, can you?

Cheers.

Sent from my iPhone


2013/6/10 David Gonzalez - [DGHVOIP] <info at dghvoip.com>

> Hey,
>
> I'm no expert on Samba 4 and I might be wrong but can't you use winbind
> for that, can you?
>
> Cheers.
>
> Sent from my iPhone
>
> On 9/06/2013, at 21:52, d tbsky <tbskyd at gmail.com> wrote:
>
> > hi:
> >   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
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list