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

Adam Tauno Williams awilliam at whitemice.org
Mon Jan 16 19:03:37 UTC 2017


Quoting Adam Tauno Williams via samba <samba at lists.samba.org>:
> Quoting Rowland Penny via samba <samba at lists.samba.org>:
>>> samba-tool's dbcheck finds only two errors in cn=Configuration, but it
>>> does not repair them.  These appear to be references to an original,
>>> long since demoted, DC.  But these values appear in neither the
>>> results of an ldbsearch or via ADSI edit.
>> Have a look at this bug report:
>> https://bugzilla.samba.org/show_bug.cgi?id=12385
> Thanks.  I have checked out master and built it [**1];  Bug#12297  
> [**2] indicates I can run samba-tool from the build of the checkout.  
>  I assume tombstone expunge, even for CN=Configuration, runs against  
> sam.ldb???  So the correct syntax is -
> [ADC28 samba]# bin/samba-tool domain tombstones expunge -H  
> /var/lib/samba/private/sam.ldb


This does not appear to have reaped any links.


[root at larkin28 samba]# bin/samba-tool domain tombstones expunge -d 10  
-H /var/lib/samba/private/sam.ldb
...
lpcfg_servicenumber: couldn't find ldb
Initial schema load needed, as we have no existing schema, seq_num: 64
schema_fsmo_init: we are master[no] updates allowed[no]
Initial schema load needed, as we have no existing schema, seq_num: 64
schema_fsmo_init: we are master[no] updates allowed[no]
gendb_search_v: CN=Directory Service,CN=Windows  
NT,CN=Services,CN=Configuration,DC=micore,DC=us  
objectClass=nTDSService -> 1
Doing a full scan on CN=Configuration,DC=micore,DC=us and looking for  
deleted objects
Doing a full scan on DC=micore,DC=us and looking for deleted objects
Doing a full scan on DC=DomainDnsZones,DC=micore,DC=us and looking for  
deleted objects
Doing a full scan on DC=ForestDnsZones,DC=micore,DC=us and looking for  
deleted objects
Removed 0 objects and 0 links successfully





More information about the samba mailing list