Running replicate with --local should be able to create the DB.
Created attachment 15362 [details] Patch for 4.10
Created attachment 15364 [details] Patch for 4.11
This is probably a regression introduced in Samba 4.9 by 7009479b7a91715543e228412435ab2fdb6221ae Please select for Samba 4.11 and Samba 4.10. A big thanks to Garming for the debugging, fix and test!
(In reply to Andrew Bartlett from comment #4) Pushed to autobuild-v4-{11,10}-test.
(In reply to Karolin Seeger from comment #5) Pushed to both branches. Closing out bug report. Thanks!