realm = self.lp.get('realm')
vgp_xml = '\\'.join([realm.lower(), 'Policies', gpo,
- 'MACHINE\\VGP\\VTLA\\VAS'
+ 'MACHINE\\VGP\\VTLA\\VAS',
'HostAccessControl\\Allow\\manifest.xml'])
try:
allow = ET.fromstring(conn.loadfile(vgp_xml))
self.outf.write('+:%s\\%s:ALL\n' % (domain.text, name.text))
vgp_xml = '\\'.join([realm.lower(), 'Policies', gpo,
- 'MACHINE\\VGP\\VTLA\\VAS'
+ 'MACHINE\\VGP\\VTLA\\VAS',
'HostAccessControl\\Deny\\manifest.xml'])
try:
deny = ET.fromstring(conn.loadfile(vgp_xml))
realm = self.lp.get('realm')
if etype == 'allow':
vgp_dir = '\\'.join([realm.lower(), 'Policies', gpo,
- 'MACHINE\\VGP\\VTLA\\VAS'
+ 'MACHINE\\VGP\\VTLA\\VAS',
'HostAccessControl\\Allow'])
elif etype == 'deny':
vgp_dir = '\\'.join([realm.lower(), 'Policies', gpo,
- 'MACHINE\\VGP\\VTLA\\VAS'
+ 'MACHINE\\VGP\\VTLA\\VAS',
'HostAccessControl\\Deny'])
else:
raise CommandError("The entry type must be either 'allow' or "
realm = self.lp.get('realm')
if etype == 'allow':
vgp_dir = '\\'.join([realm.lower(), 'Policies', gpo,
- 'MACHINE\\VGP\\VTLA\\VAS'
+ 'MACHINE\\VGP\\VTLA\\VAS',
'HostAccessControl\\Allow'])
elif etype == 'deny':
vgp_dir = '\\'.join([realm.lower(), 'Policies', gpo,
- 'MACHINE\\VGP\\VTLA\\VAS'
+ 'MACHINE\\VGP\\VTLA\\VAS',
'HostAccessControl\\Deny'])
else:
raise CommandError("The entry type must be either 'allow' or "