[PATCH] samba-tool throws error if there is an empty FSMO role

Rowland Penny repenny241155 at gmail.com
Thu Mar 31 12:23:43 UTC 2016

Hi, if there are any empty FSMO roles in AD, 'samba-tool fsmo' throws an 
error, this happens if you try to show or transfer an empty role.

The attached patch will cure this, if you run 'samba-tool fsmo show' any 
empty roles will be shown similar to this:

  DomainDnsZonesMasterRole owner: * The 'domaindns' role does not have 
an FSMO roleowner

If you try to transfer an empty role, rather than throwing an error, it 
will now tell you the role as no owner i.e.

samba-tool fsmo transfer --role=pdc
* The 'pdc' role does not have an FSMO roleowner

You will then be able to seize the role.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Stop-samba-tool-fsmo-erroring-out-if-there-is-an-emp.patch
Type: text/x-diff
Size: 15414 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160331/ee5fd1a4/Stop-samba-tool-fsmo-erroring-out-if-there-is-an-emp.diff>

More information about the samba-technical mailing list