[Samba] ldbmodify in multi-DCs environment.

Prunk Dump
Thu, 07 Jun 2018 08:16:49 -0000

2018-06-06 11:34 GMT+02:00 Andrew Bartlett <abartlet at
samba.org>:
> On Wed, 2018-06-06 at 11:31 +0200, Prunk Dump via samba wrote:
>> Hello Samba Team !
>>
>> Just a little question. Is ldbmodify safe in a multi-DCs environment
>> or there is something I forgot ? Can I launch the "ldbmodify"
command
>> on any DC to edit my AD database ?
>>
>> Note :
>>
>> All my DCs are Samba 4.5.12. There is no Wndows DCs.
>>
>> Thanks !
>>
>> Baptiste.
>
> Yes, the running server will pick up the modifications on the next sync
> interval.  Just ensure you do it on the sam.ldb file, not some backend
> file in sam.ldb.d/
>
> Andrew Bartlett
>
> --
> Andrew Bartlett                       http://samba.org/~abartlet/
> Authentication Developer, Samba Team  http://samba.org
> Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba
>

Thank you very much Andrew !


This will help me a lot to write some clustered user/share management
scripts. Big thanks to all the Samba developers !

Regards,

Baptiste.