The Samba-Bugzilla – Attachment 16598 Details for
Bug 14687
GPO restore fails if an empty REG_MULTI_SZ is encountered in registry.pol.xml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Added Registry.pol.xml for testing
file_14687.txt (text/plain), 2.11 KB, created by
Kacper
on 2021-04-27 22:04:15 UTC
(
hide
)
Description:
Added Registry.pol.xml for testing
Filename:
MIME Type:
Creator:
Kacper
Created:
2021-04-27 22:04:15 UTC
Size:
2.11 KB
patch
obsolete
>diff -Naur a/python/samba/gp_parse/gp_pol.py b/python/samba/gp_parse/gp_pol.py >--- a/python/samba/gp_parse/gp_pol.py 2021-04-14 13:46:15.502560949 +0000 >+++ b/python/samba/gp_parse/gp_pol.py 2021-04-14 13:45:50.312562722 +0000 >@@ -83,7 +83,7 @@ > # entry.size = int(e.attrib['size']) > > if misc.REG_MULTI_SZ == entry_type: >- values = [x.text for x in e.findall('Value')] >+ values = [x.text for x in e.findall('Value') if x.text] > entry.data = (u'\x00'.join(values) + u'\x00\x00').encode('utf-16le') > elif (misc.REG_NONE == entry_type): > pass >diff -Naur a/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.xml b/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.xml >--- a/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.xml 2021-04-27 23:28:15.167222300 +0200 >+++ b/source4/selftest/provisions/generalized-gpo-backup/policy/{1E1DC8EA-390C-4800-B327-98B56A0AEA5D}/Machine/Registry.pol.xml 2021-04-27 23:42:00.628047200 +0200 >@@ -413,4 +413,24 @@ > <ValueName>Version</ValueName> > <Value>2</Value> > </Entry> >+ <Entry type="4" type_name="REG_DWORD"> >+ <Key>Software\Policies\Microsoft\Windows\AppPrivacy</Key> >+ <ValueName>LetAppsAccessCamera</ValueName> >+ <Value>0</Value> >+ </Entry> >+ <Entry type="7" type_name="REG_MULTI_SZ"> >+ <Key>Software\Policies\Microsoft\Windows\AppPrivacy</Key> >+ <ValueName>LetAppsAccessCamera_UserInControlOfTheseApps</ValueName> >+ <Value/> >+ </Entry> >+ <Entry type="7" type_name="REG_MULTI_SZ"> >+ <Key>Software\Policies\Microsoft\Windows\AppPrivacy</Key> >+ <ValueName>LetAppsAccessCamera_ForceAllowTheseApps</ValueName> >+ <Value/> >+ </Entry> >+ <Entry type="7" type_name="REG_MULTI_SZ"> >+ <Key>Software\Policies\Microsoft\Windows\AppPrivacy</Key> >+ <ValueName>LetAppsAccessCamera_ForceDenyTheseApps</ValueName> >+ <Value/> >+ </Entry> > </PolFile> >\ No newline at end of file
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14687
:
16589
|
16598
|
16601