upgradeprovision --full fails to find CN=NTDS Settings

Michael Wood esiotrot at gmail.com
Tue Jan 3 15:26:45 MST 2012


On 3 January 2012 23:39, Michael Wood <esiotrot at gmail.com> wrote:
[...]
> I notice that it still complains about not being able to set ACLs on
> policy-related objects.
[...]
> Unable to set ACLs on policies related objects: an integer is required

I got it to print a traceback:

Traceback (most recent call last):
  File "/usr/local/samba/lib/python2.6/site-packages/samba/upgradehelpers.py",
line 635, in update_gpo
    names.domainsid, names.dnsdomain, names.domaindn, lp)
  File "/usr/local/samba/lib/python2.6/site-packages/samba/provision/__init__.py",
line 1367, in setsysvolacl
    os.chown(sysvol, -1, gid)
TypeError: an integer is required

This happens because names.wheel_gid is passed to setsysvolacl as the
GID, but this is an ldb.MessageElement(['4']) instead of an integer,
so os.chown chokes on it.

Using int(list(names.wheel_gid)[0]) instead gets around it.

-- 
Michael Wood <esiotrot at gmail.com>


More information about the samba-technical mailing list