summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/tests/ntacls.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-07 16:54:28 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-23 15:02:26 +0200
commitb1825c64215ac304eff8fcd3555e9f5943f3ba63 (patch)
tree9131a271997024ed39119e009a7534fc1d0418be /source4/scripting/python/samba/tests/ntacls.py
parenta778662da8b1dfc65bde55644703f2a3146ef7a8 (diff)
downloadsamba-b1825c64215ac304eff8fcd3555e9f5943f3ba63.tar.gz
samba-b1825c64215ac304eff8fcd3555e9f5943f3ba63.tar.xz
samba-b1825c64215ac304eff8fcd3555e9f5943f3ba63.zip
s4-scripting: Redefine getntacl() as accessing via the smbd VFS or directly
This allows us to write tests that compare the smbd vfs with what is in the DB or xattr. Andrew Bartlett
Diffstat (limited to 'source4/scripting/python/samba/tests/ntacls.py')
-rw-r--r--source4/scripting/python/samba/tests/ntacls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/tests/ntacls.py b/source4/scripting/python/samba/tests/ntacls.py
index c867c95c4e1..8cdf613078a 100644
--- a/source4/scripting/python/samba/tests/ntacls.py
+++ b/source4/scripting/python/samba/tests/ntacls.py
@@ -49,7 +49,7 @@ class NtaclsTests(TestCase):
setntacl(lp,tempf,acl,"S-1-5-21-2212615479-2695158682-2101375467")
facl = getntacl(lp,tempf)
anysid = security.dom_sid(security.SID_NT_SELF)
- self.assertEquals(facl.info.as_sddl(anysid),acl)
+ self.assertEquals(facl.as_sddl(anysid),acl)
os.unlink(tempf)
def test_setntacl_getntacl_param(self):
@@ -62,7 +62,7 @@ class NtaclsTests(TestCase):
setntacl(lp,tempf,acl,"S-1-5-21-2212615479-2695158682-2101375467","tdb",os.path.join(path,"eadbtest.tdb"))
facl=getntacl(lp,tempf,"tdb",os.path.join(path,"eadbtest.tdb"))
domsid=security.dom_sid(security.SID_NT_SELF)
- self.assertEquals(facl.info.as_sddl(domsid),acl)
+ self.assertEquals(facl.as_sddl(domsid),acl)
os.unlink(tempf)
def test_setntacl_invalidbackend(self):