1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-22 16:59:09 +03:00

gpo: remove unreached non-DC branch in gp_sec_ext.apply_map()

We don't get this far if we are not a DC, and if somehow we do the
errors will be no more informative due to this special case.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
This commit is contained in:
David Mulder
2018-08-29 15:44:35 +12:00
committed by Aurélien Aptel
parent 78601b3516
commit 96ffc9690b

View File

@ -136,8 +136,6 @@ class gp_sec_ext(gp_inf_ext):
return "Security GPO extension"
def apply_map(self):
if self.lp.get('server role') != 'active directory domain controller':
return {}
return {"System Access": {"MinimumPasswordAge": ("minPwdAge",
inf_to_ldb),
"MaximumPasswordAge": ("maxPwdAge",