mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-01-22 18:04:09 +03:00
The location to add policy data has been moved
This commit is contained in:
parent
ab79f169e8
commit
3ddd9462ea
@ -108,8 +108,6 @@ class samba_backend(applier_backend):
|
||||
raise exc
|
||||
|
||||
if self._is_machine_username:
|
||||
self.storage.wipe_hklm()
|
||||
self.storage.wipe_user(self.storage.get_info('machine_sid'))
|
||||
for gptobj in machine_gpts:
|
||||
try:
|
||||
gptobj.merge_machine()
|
||||
@ -127,7 +125,6 @@ class samba_backend(applier_backend):
|
||||
except Exception as exc:
|
||||
log('F3')
|
||||
raise exc
|
||||
self.storage.wipe_user(self.sid)
|
||||
|
||||
# Merge user settings if UserPolicyMode set accordingly
|
||||
# and user settings (for HKCU) are exist.
|
||||
|
@ -23,6 +23,7 @@ from enum import Enum, unique
|
||||
from samba.gp_parse.gp_pol import GPPolParser
|
||||
|
||||
from storage import registry_factory
|
||||
from storage.dconf_registry import add_to_dict
|
||||
|
||||
from .polfile import (
|
||||
read_polfile
|
||||
@ -154,6 +155,7 @@ def get_merger(preference_type):
|
||||
|
||||
class gpt:
|
||||
def __init__(self, gpt_path, sid, username='Machine', gpo_info=None):
|
||||
add_to_dict(gpt_path, username, gpo_info)
|
||||
self.path = gpt_path
|
||||
self.username = username
|
||||
self.sid = sid
|
||||
|
Loading…
x
Reference in New Issue
Block a user