gpo: remove unreached non-DC branch in gp_sec_ext.apply_map()
authorDavid Mulder <dmulder@suse.com>
Wed, 29 Aug 2018 03:44:35 +0000 (15:44 +1200)
committerAurélien Aptel <aaptel@samba.org>
Mon, 8 Oct 2018 16:17:15 +0000 (18:17 +0200)
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>
python/samba/gp_sec_ext.py

index 256a39eab15ce6bbb407e8e594d22ad1cb975f17..55f71b745658e74546624248905d483c2b48c59b 100644 (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",