summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-11-20 14:58:13 +0100
committerMichael Adam <obnox@samba.org>2012-11-30 17:17:19 +0100
commit325e92190852ae317c42c26ab86d32818d119381 (patch)
treecbd9e85c4ee1cb97253bfc607e80dcc954d7165c /source4/scripting
parent67799962b8e6e16ac18466658a3f9924854e32f7 (diff)
downloadsamba-325e92190852ae317c42c26ab86d32818d119381.tar.gz
samba-325e92190852ae317c42c26ab86d32818d119381.tar.bz2
samba-325e92190852ae317c42c26ab86d32818d119381.zip
s4:netcmd/gpo.py: let get_gpo_info explicitly ask for the full ntSecurityDescriptor
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/netcmd/gpo.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/gpo.py b/source4/scripting/python/samba/netcmd/gpo.py
index f57c96591c..cc6381990b 100644
--- a/source4/scripting/python/samba/netcmd/gpo.py
+++ b/source4/scripting/python/samba/netcmd/gpo.py
@@ -126,7 +126,8 @@ def get_gpo_dn(samdb, gpo):
return dn
-def get_gpo_info(samdb, gpo=None, displayname=None, dn=None):
+def get_gpo_info(samdb, gpo=None, displayname=None, dn=None,
+ sd_flags=security.SECINFO_OWNER|security.SECINFO_GROUP|security.SECINFO_DACL|security.SECINFO_SACL):
'''Get GPO information using gpo, displayname or dn'''
policies_dn = samdb.get_default_basedn()
@@ -154,7 +155,8 @@ def get_gpo_info(samdb, gpo=None, displayname=None, dn=None):
'flags',
'name',
'displayName',
- 'gPCFileSysPath'])
+ 'gPCFileSysPath'],
+ controls=['sd_flags:1:%d' % sd_flags])
except Exception, e:
if gpo is not None:
mesg = "Cannot get information for GPO %s" % gpo