1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

gpo: Display Security Extension RSOP on ADDC only

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
David Mulder 2020-08-07 11:09:17 -06:00 committed by David Mulder
parent c887f7a7d2
commit 7d6d160a8e

View File

@ -91,6 +91,8 @@ class gp_krb_ext(gp_inf_ext):
def rsop(self, gpo):
output = {}
if self.lp.get('server role') != 'active directory domain controller':
return output
inf_file = 'MACHINE/Microsoft/Windows NT/SecEdit/GptTmpl.inf'
if gpo.file_sys_path:
path = os.path.join(gpo.file_sys_path, inf_file)
@ -205,6 +207,8 @@ class gp_access_ext(gp_inf_ext):
def rsop(self, gpo):
output = {}
if self.lp.get('server role') != 'active directory domain controller':
return output
inf_file = 'MACHINE/Microsoft/Windows NT/SecEdit/GptTmpl.inf'
if gpo.file_sys_path:
path = os.path.join(gpo.file_sys_path, inf_file)