1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Accept user name for Samba backend

This commit is contained in:
Игорь Чудов 2019-11-15 12:15:41 +04:00
parent a3ca6c3d02
commit 8af968a6ed
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -114,7 +114,7 @@ class samba_backend(applier_backend):
return policy_files
return dict({ 'machine_regpols': [], 'user_regpols': [] })
def __init__(self, loadparm, creds, sid, dc):
def __init__(self, loadparm, creds, sid, dc, username):
# Regular expressions to split PReg files into user and machine parts
self._machine_pol_path_regex = re.compile(self._machine_pol_path_pattern)
self._user_pol_path_regex = re.compile(self._user_pol_path_pattern)