building samba 4.9.x with python > 2.6

Douglas Bagnall douglas.bagnall at catalyst.net.nz
Thu Apr 4 23:00:45 UTC 2019


On 5/04/19 8:59 AM, Rowland Penny via samba-technical wrote:
>> line 1693, in setsysvolacl userdn = '<SID={1}-{2}>'.format(domainsid,
>> security.DOMAIN_RID_ADMINISTRATOR)
> 
> I am not a python expert (far from it), but doesn't python start
> counting from '0' ?

Rowland, you are correct.

> If so, shouldn't `userdn = '<SID={1}-{2}>'.format(domainsid,
> security.DOMAIN_RID_ADMINISTRATOR)` be `userdn =
> '<SID={0}-{1}>'.format(domainsid, security.DOMAIN_RID_ADMINISTRATOR)`
> 

There is a better patch now attached to
https://bugzilla.samba.org/show_bug.cgi?id=13882

cheers,
Douglas



More information about the samba-technical mailing list