summaryrefslogtreecommitdiff
path: root/python/samba
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2019-03-08 11:22:55 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-03-12 01:41:32 +0000
commit1364ae3aeb9cf49c5516497f0b02f0ed4c5c147f (patch)
tree17e695b009e470a3efc9765588d48e65522a26e9 /python/samba
parent52e0160116c39ac0b4759851bcbacd561bd26c0b (diff)
downloadsamba-1364ae3aeb9cf49c5516497f0b02f0ed4c5c147f.tar.gz
gpo: Backup a policy folder containing GPE.INI
The GPE.INI file does not appear to be documented anywhere in the protocol specifications and seems to be due to legacy code. It appears that it used to be how the gPCUserExtensionNames and gPCMachineExtensionNames were maintained without the requirement for LDAP. All we do is ignore the parsing of this file and copy it over as binary. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13825 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Mar 12 01:41:32 UTC 2019 on sn-devel-144
Diffstat (limited to 'python/samba')
-rw-r--r--python/samba/netcmd/gpo.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/samba/netcmd/gpo.py b/python/samba/netcmd/gpo.py
index 3c87592f123..5a0258196c3 100644
--- a/python/samba/netcmd/gpo.py
+++ b/python/samba/netcmd/gpo.py
@@ -261,6 +261,12 @@ def find_parser(name, flags=re.IGNORECASE):
return GPScriptsIniParser()
if re.match('psscripts.ini$', name, flags=flags):
return GPScriptsIniParser()
+ if re.match('GPE\.INI$', name, flags=flags):
+ # This file does not appear in the protocol specifications!
+ #
+ # It appears to be a legacy file used to maintain gPCUserExtensionNames
+ # and gPCMachineExtensionNames. We should just copy the file as binary.
+ return GPParser()
if re.match('.*\.ini$', name, flags=flags):
return GPIniParser()
if re.match('.*\.pol$', name, flags=flags):