[Samba] Initial replication halts with "The handle is invalid." (msDS-NC-Replica-Locations corrupted?)

Adam Tauno Williams awilliam at whitemice.org
Mon Jan 16 20:15:32 UTC 2017

Quoting Rowland Penny via samba <samba at lists.samba.org>:
> I 'think' you are meant to patch Samba, then totally recompile it
> i.e. ./configure && make && make install, then run samba-tool.

I did that

   git clone https://git.samba.org/samba.git
   cd samba/
   yum install gcc libacl-devel python-devel gnutls-devel openldap-devel
   ls bin/samba-tool

The patch mentioned in Bug#12385  
<https://bugzilla.samba.org/show_bug.cgi?id=12385> appears to already  
be applied to master;  attempting to "patch -p1 < patchfile" results  
in an already-applied warning.

I ran the tool as -

   bin/samba-tool domain tombstones expunge -d 10 -H  

> From the way I read it, you are supposed to ignore bug 12297

I only referred to that bug as Mr. Bartlett there said """This patch  
is to code used by both, but the test I was after just needs you to  
build and run 'bin/samba-tool domain tombstones expunge' from an  
in-tree build of master, after applying this.
No install will be required for this step."""

More information about the samba mailing list