gpo: Move implementation from samba_gpoupdate
authorDavid Mulder <dmulder@suse.com>
Thu, 29 Mar 2018 14:32:02 +0000 (08:32 -0600)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 12 Apr 2018 06:13:34 +0000 (08:13 +0200)
commit76cfbb6e8cec87b7f1b069dfed06a572359eab0f
treebc93d0d29b078e7d9ad583fc7ad19288a5f0fdf7
parent10b43aa1c9c1772af1485d93a8bdf53c31de211c
gpo: Move implementation from samba_gpoupdate

The implementation of group policy apply should
not be in the application script. One reason is
to implement user apply, we can call these
functions via the python c-api, (passing creds
via the command line will expose them via ps).
Another reason for this is if some overrides
the smb.conf "gpo update command" option, it
would be useful to have these functions.

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/gpclass.py
source4/scripting/bin/samba_gpoupdate