1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-23 00:23:53 +03:00

gp_ini: Add a fdeploy1 parser for better generalization

We still fail to handle entities in fdeploy.ini (version 0) files. Here we
manage to factor out some of the SIDs, but not all of them. This will be
completed in a later patch. The overall idea is to split the SID values into
individual XML elements and annotate them. We also note down network paths for
the redirection folders.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Garming Sam
2018-05-24 15:17:35 +12:00
committed by Andrew Bartlett
parent 4edb1769b0
commit 806e3e60e0
2 changed files with 80 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ from samba.dcerpc import nbt
from samba.net import Net
from samba.gp_parse import GPParser, GPNoParserException
from samba.gp_parse.gp_pol import GPPolParser
from samba.gp_parse.gp_ini import GPIniParser, GPTIniParser
from samba.gp_parse.gp_ini import GPIniParser, GPTIniParser, GPFDeploy1IniParser
from samba.gp_parse.gp_csv import GPAuditCsvParser
from samba.gp_parse.gp_inf import GptTmplInfParser
from samba.gp_parse.gp_aas import GPAasParser
@@ -243,6 +243,8 @@ def parse_unc(unc):
def find_parser(name, flags=re.IGNORECASE):
if re.match('fdeploy1\.ini$', name, flags=flags):
return GPFDeploy1IniParser()
if re.match('audit\.csv$', name, flags=flags):
return GPAuditCsvParser()
if re.match('GptTmpl\.inf$', name, flags=flags):