ntacl and upgradeprovision patches

Matthias Dieter Wallnöfer mdw at samba.org
Sat Jan 16 06:07:19 MST 2010


Hi ekacnet,

"make test" failures I still get:

baseDN: DC=samba,DC=example,DC=com

[Message({'dn': 
Dn('CN=testdescriptoruser1,CN=Users,DC=samba,DC=example,DC=com'), 
'nTSecurityDescriptor': 
MessageElement(['\x01\x00\x14\xbc\x14\x00\x00\x00$\x00\x00\x004\x00\x00\x00<\x00\x00\x00\x01\x02\x00\x00\x00\x00\x00\x05\x15\x00\x00\x00\x01\x02\x00\x00\x01\x02\x00\x00\x00\x00\x00\x05\x15\x00\x00\x00\x01\x02\x00\x00\x04\x00\x08\x00\x00\x00\x00\x00\x04\x00\x1c\x00\x01\x00\x00\x00\x00\x00\x14\x000\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x05\x0b\x00\x00\x00'])})]
UNEXPECTED(failure): samba4.ldap.python 
(dc).__main__.BasicTests.test_security_descriptor_add_neg
REASON: Traceback (most recent call last):
   File "./selftest/../lib/ldb/tests/python/ldap.py", line 1831, in 
test_security_descriptor_add_neg
     self.assertRaises(KeyError, lambda: res[0]["nTSecurityDescriptor"])
AssertionError: KeyError not raised
command: PYTHONPATH=/root/samba/source4/bin/python:../lib/subunit/python 
/usr/bin/python2.5 ./selftest/../lib/ldb/tests/python/ldap.py 
--configfile=$SMB_CONF_PATH $SERVER -U$USERNAME%$PASSWORD -W $DOMAIN
expanded command: 
PYTHONPATH=/root/samba/source4/bin/python:../lib/subunit/python 
/usr/bin/python2.5 ./selftest/../lib/ldb/tests/python/ldap.py 
--configfile=/root/samba/source4/st/client/client.conf localdc1 
-UAdministrator%localdcpass -W SAMBADOMAIN
ERROR: Testsuite[samba4.ldap.python (dc)]
REASON: Subunit/Filer Reason
  failures[1]

[596/608 in 1819s, 1 errors] samba4.ldap_schema.python (dc)
[597/608 in 2034s, 1 errors] samba4.ldap.possibleInferiors.python (dc)
[598/608 in 2036s, 1 errors] samba4.ldap.secdesc.python (dc)
[599/608 in 2270s, 1 errors] samba4.ldap.acl.python (dc)
[600/608 in 2300s, 1 errors] samba4.xattr.python
UNEXPECTED(error): 
samba4.xattr.python.samba.tests.xattr.XattrTests.test_set_and_get_native
REASON: Traceback (most recent call last):
   File "bin/python/samba/tests/xattr.py", line 60, in 
test_set_and_get_native
     samba.xattr_native.wrap_setxattr(tempf,"user.unittests",reftxt)
TypeError: Operation not supported
UNEXPECTED(error): 
samba4.xattr.python.samba.tests.xattr.XattrTests.test_set_xattr_native
REASON: Traceback (most recent call last):
   File "bin/python/samba/tests/xattr.py", line 44, in test_set_xattr_native
     
samba.xattr_native.wrap_setxattr(tempf,"user.unittests",ndr_pack(ntacl))
TypeError: Operation not supported
command: /usr/bin/python2.5 ./selftest/../scripting/bin/subunitrun 
samba.tests.xattr
expanded command: /usr/bin/python2.5 
./selftest/../scripting/bin/subunitrun samba.tests.xattr
ERROR: Testsuite[samba4.xattr.python]
REASON: Subunit/Filer Reason
  errors[2]

Matthias

Matthieu Patou wrote:
> Hello Matthias,
>
> As said ealier on IRC I have no idea.
> I retried on another workstation and it's ok !
> Can you try to apply this debuging patch and rerun a simple provision 
> (as a simple user).
>
>
> Thanks.
> Matthieu.
>
> On 16/01/2010 00:55, Matthias Dieter Wallnöfer wrote:
>> I still face the following problems on "make test":
>>
>> Traceback (most recent call last):
>> File "./setup/provision", line 243, in <module>
>> nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,useeadb=eadb)
>> File "bin/python/samba/provision.py", line 1334, in provision
>> setsysvolacl(samdb,names,paths.netlogon,paths.sysvol,wheel_gid,domainsid,lp) 
>>
>>
>> File "bin/python/samba/provision.py", line 1080, in setsysvolacl
>> setntacl(lp,sysvol,acl)
>> File "bin/python/samba/ntacls.py", line 74, in setntacl
>> print "Fail to open %s"%eadb
>> NameError: global name 'eadb' is not defined
>>
>> And when I substitute "eadb" with "eadbname" I get:
>>
>> raceback (most recent call last):
>> File "./setup/provision", line 243, in <module>
>> nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,useeadb=eadb)
>> File "bin/python/samba/provision.py", line 1334, in provision
>> setsysvolacl(samdb,names,paths.netlogon,paths.sysvol,wheel_gid,domainsid,lp) 
>>
>>
>> File "bin/python/samba/provision.py", line 1080, in setsysvolacl
>> setntacl(lp,sysvol,acl)
>> File "bin/python/samba/ntacls.py", line 75, in setntacl
>> attribute = 
>> samba.xattr_native.wrap_getxattr(file,xattr.XATTR_NTACL_NAME)
>> TypeError: No data available
>>
>> Matthias
>



More information about the samba-technical mailing list