gpo: Dynamically load gp_exts
authorDavid Mulder <dmulder@suse.com>
Wed, 9 May 2018 15:24:37 +0000 (09:24 -0600)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jul 2018 20:11:23 +0000 (22:11 +0200)
commit126b789268a3a21ee4d5769290b69d45860bb608
treeff3b7b3c42b16160b16a0f305a90263392b5d338
parentfb6c250bdeebfd00d1605dd76ac54d1013ea4ba2
gpo: Dynamically load gp_exts

This loads Group Policy Client Side Extensions
similar to the way that they are loaded on a
Windows client. Extensions are installed to a
configuration file in the samba cache path where
they receive a unique GUID matched with the path
to the python gp_ext file. Classes which inherit
from the gp_ext class (as defined in gpclass.py)
will be dynamically loaded.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/gp_ext_loader.py [new file with mode: 0644]
source4/scripting/bin/samba-gpupdate