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

Jeremy Allison jra at samba.org
Fri Apr 8 18:21:31 UTC 2016


On Fri, Apr 08, 2016 at 06:09:16PM +1200, Andrew Bartlett wrote:
> On Tue, 2016-04-05 at 11:18 -0700, Jeremy Allison wrote:
> > On Thu, Mar 31, 2016 at 01:23:43PM +0100, Rowland Penny wrote:
> > > 
> > > 
> > > 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.
> > Ping. Can we get a second Team reviewer for Rowland for this ?
> > 
> > My python is too weak to do a good job here, so someone with
> > more python experience would be appreciated.
> 
> A test on such a domain would be really nice.  I suspect the fl2000
> environment in selftest won't have the DNS fsmo roles for example.
> 
> Otherwise it looks reasonable, but I'll look again when it has the
> test.

Andrew, can you be specific about what you want the test
to do please ?

It's a bit demotivating when you create a patch for an
obvious error throwing bug and get bounced back for a
non-specific test request. Please be clear about what
you think the test should be doing before you'll +1
this.

Cheers,

	Jeremy.



More information about the samba-technical mailing list