This VM is a fresh installation of TW, so I would expect stuff to be in a working state before running the AD stuff (it was). There cannot be any leftover files due to user intervention. Why the file is borked after running samba-client I don't know.