summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-20 15:02:05 +0100
committerMichael Adam <obnox@samba.org>2012-11-30 17:17:19 +0100
commita58124208006ba9311588554b147acfb86d4d4eb (patch)
treebdd3f2178037aaaad4063ff256beab6791467ced
parent325e92190852ae317c42c26ab86d32818d119381 (diff)
downloadsamba-a58124208006ba9311588554b147acfb86d4d4eb.tar.gz
samba-a58124208006ba9311588554b147acfb86d4d4eb.tar.bz2
samba-a58124208006ba9311588554b147acfb86d4d4eb.zip
s4:tests/samba_tool/gpo.py: add test_show_as_admin()
This calls samba-tool gpo show as admin (which should be able to see the full nTSecurityDescriptor. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--source4/scripting/python/samba/tests/samba_tool/gpo.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/tests/samba_tool/gpo.py b/source4/scripting/python/samba/tests/samba_tool/gpo.py
index 82e7268e1b..ce8c65f7f0 100644
--- a/source4/scripting/python/samba/tests/samba_tool/gpo.py
+++ b/source4/scripting/python/samba/tests/samba_tool/gpo.py
@@ -49,6 +49,11 @@ os.environ["SERVER"])
(result, out, err) = self.runsubcmd("gpo", "show", self.gpo_guid, "-H", "ldap://%s" % os.environ["SERVER"])
self.assertCmdSuccess(result, "Ensuring gpo fetched successfully")
+ def test_show_as_admin(self):
+ """Show a real GPO, and make sure it passes"""
+ (result, out, err) = self.runsubcmd("gpo", "show", self.gpo_guid, "-H", "ldap://%s" % os.environ["SERVER"], "-U%s%%%s" % (os.environ["USERNAME"], os.environ["PASSWORD"]))
+ self.assertCmdSuccess(result, "Ensuring gpo fetched successfully")
+
def test_aclcheck(self):
"""Check all the GPOs on the remote server have correct ACLs"""
(result, out, err) = self.runsubcmd("gpo", "aclcheck", "-H", "ldap://%s" % os.environ["SERVER"], "-U%s%%%s" % (os.environ["USERNAME"], os.environ["PASSWORD"]))