diff options
author | David Mulder <dmulder@suse.com> | 2017-02-24 14:19:48 -0700 |
---|---|---|
committer | Garming Sam <garming@samba.org> | 2017-11-20 21:41:15 +0100 |
commit | 8eba3b5d381990cb7a394b0a8f26116cf0af57ea (patch) | |
tree | bbd94f94b241b109cedf4b3ad6022d95a9b9100e /source4/scripting | |
parent | 41d1ff74271806cdb5f7f811c37f742bd7b51ba5 (diff) | |
download | samba-8eba3b5d381990cb7a394b0a8f26116cf0af57ea.tar.gz |
gpo: Make the gpclass more easily extensible
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting')
-rwxr-xr-x | source4/scripting/bin/samba_gpoupdate | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/scripting/bin/samba_gpoupdate b/source4/scripting/bin/samba_gpoupdate index a5573cece26..3a6ed99d7b8 100755 --- a/source4/scripting/bin/samba_gpoupdate +++ b/source4/scripting/bin/samba_gpoupdate @@ -49,7 +49,7 @@ def gp_path_list(path): return GPO_LIST -def gpo_parser(GPO_LIST, ldb, conn, attr_log): +def gpo_parser(GPO_LIST, ldb, conn, attr_log, lp): '''The API method to parse the GPO :param GPO_LIST: :param ldb: Live instance of an LDB object AKA Samba @@ -62,9 +62,9 @@ def gpo_parser(GPO_LIST, ldb, conn, attr_log): for entry in GPO_LIST: (ext, thefile) = entry if ret == False: - ret = ext.parse(thefile, ldb, conn, attr_log) + ret = ext.parse(thefile, ldb, conn, attr_log, lp) else: - temp = ext.parse(thefile, ldb, conn, attr_log) + temp = ext.parse(thefile, ldb, conn, attr_log, lp) return ret @@ -243,7 +243,7 @@ for guid_eval in hierarchy_gpos: if (version != 0) and GPO_Changed == True: logger.info('GPO %s has changed' % guid) try: - change_backlog = gpo_parser(gpolist, test_ldb, conn, attr_log) + change_backlog = gpo_parser(gpolist, test_ldb, conn, attr_log, lp) except: logger.error('Failed to parse gpo %s' % guid) continue |