Mimics behaviour of dcpromo.exe for Samba4