From b30a604f7353ddc6c3218f1547d56fbc1386a9cf Mon Sep 17 00:00:00 2001 From: David Mulder Date: Thu, 25 Jun 2020 15:23:14 -0600 Subject: [PATCH] gpo: Apply Group Policy Weekly Scripts Signed-off-by: David Mulder Reviewed-by: Douglas Bagnall --- libgpo/admx/en-US/samba.adml | 5 +++++ libgpo/admx/samba.admx | 7 +++++++ python/samba/gp_scripts_ext.py | 1 + selftest/knownfail.d/gpo | 1 - 4 files changed, 13 insertions(+), 1 deletion(-) delete mode 100644 selftest/knownfail.d/gpo diff --git a/libgpo/admx/en-US/samba.adml b/libgpo/admx/en-US/samba.adml index cf7946114a2..4a534265cfa 100755 --- a/libgpo/admx/en-US/samba.adml +++ b/libgpo/admx/en-US/samba.adml @@ -10,9 +10,11 @@ Daily Scripts Hourly Scripts Monthly Scripts + Weekly Scripts This policy setting allows you to execute commands, either local or on remote storage, daily. This policy setting allows you to execute commands, either local or on remote storage, hourly. This policy setting allows you to execute commands, either local or on remote storage, monthly. + This policy setting allows you to execute commands, either local or on remote storage, weekly. @@ -24,6 +26,9 @@ Script and arguments + + Script and arguments + diff --git a/libgpo/admx/samba.admx b/libgpo/admx/samba.admx index f72e601e9a8..43ce62961d3 100755 --- a/libgpo/admx/samba.admx +++ b/libgpo/admx/samba.admx @@ -33,5 +33,12 @@ + + + + + + + diff --git a/python/samba/gp_scripts_ext.py b/python/samba/gp_scripts_ext.py index 0babf8765a7..ac812f844ca 100644 --- a/python/samba/gp_scripts_ext.py +++ b/python/samba/gp_scripts_ext.py @@ -37,6 +37,7 @@ class gp_scripts_ext(gp_pol_ext): reg_key = 'Software\\Policies\\Samba\\Unix Settings' sections = { '%s\\Daily Scripts' % reg_key : '/etc/cron.daily', '%s\\Monthly Scripts' % reg_key : '/etc/cron.monthly', + '%s\\Weekly Scripts' % reg_key : '/etc/cron.weekly', '%s\\Hourly Scripts' % reg_key : '/etc/cron.hourly' } self.gp_db.set_guid(gpo.name) pol_file = 'MACHINE/Registry.pol' diff --git a/selftest/knownfail.d/gpo b/selftest/knownfail.d/gpo deleted file mode 100644 index 27f3459db8b..00000000000 --- a/selftest/knownfail.d/gpo +++ /dev/null @@ -1 +0,0 @@ -^samba.tests.gpo.samba.tests.gpo.GPOTests.test_gp_scripts -- 2.47.2