[Samba] security = ads, backend = ad parameter not working in samba 4.10.10

Rowland penny rpenny at samba.org
Thu Dec 5 18:34:14 UTC 2019

On 05/12/2019 17:48, Sérgio Basto wrote:
> I did migration with something like this :
> ldbsearch -H /opt/samba/private/sam.ldb -s sub -b dc=old_ad,dc=local
> '(objectClass=user)' > user-export2.ldif
> scp user-export2.ldif to_the_new_machine:
> in new machine :
> sed -i 's/DC=old_ad/DC=corp/g; s/old_ad.local/corp.local/g' user-export2.ldif
> sed -i bla bla  user-export2.ldif
> ldbmodify -H /var/lib/samba/private/sam.ldb --controls=local_oid: user-export2.ldif
Sorry, but it is more involved than that, you should have joined a new 
DC, then demoted the old DC, you might have had to do this a few times 
to move from Samba 4.x.x to a supported Samba version.

I am very surprised that this worked in any way at all.


More information about the samba mailing list