From 325e92190852ae317c42c26ab86d32818d119381 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 20 Nov 2012 14:58:13 +0100 Subject: s4:netcmd/gpo.py: let get_gpo_info explicitly ask for the full ntSecurityDescriptor Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source4/scripting/python/samba/netcmd/gpo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4') 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 -- cgit