Created attachment 15206 [details] output of "samba-tool fsmo transfer" showing errors Executing "samba-tool fsmo transfer --role=all" on a new DC partially fails. See the attached output, part 1. On line 66 in the attached log file, the Python script drs.utils throws an exception: "module 'samba' has no attribute 'drs_utils'" Adding "import samba.drs_utils" to fsmo.py fixes the problem instantly: see part 2 of the attached output. It appears that this issue has existed for a while. It was reported in https://lists.samba.org/archive/samba/2016-September/203376.html. Google search reveals other similar reports. Bug #13973 appears to refer to the same issue: https://bugzilla.samba.org/show_bug.cgi?id=13973
Created attachment 15207 [details] proposed patch
Thanks for the report and patch. A fix for this just landed in master tagged with bug 13973 and will be backported soon. *** This bug has been marked as a duplicate of bug 13973 ***