gpo: Make the gpoupdate script much more reliable
authorDavid Mulder <dmulder@suse.com>
Sat, 11 Feb 2017 14:53:07 +0000 (07:53 -0700)
committerGarming Sam <garming@samba.org>
Mon, 20 Nov 2017 20:41:14 +0000 (21:41 +0100)
commit115615d836b3616f552d8e3df9984d3b60474d17
tree9731006dd14d616abf1215663f8cdea0a2baa774
parent5194cd4e8d9d0308775042eeba544a5ea0a927a0
gpo: Make the gpoupdate script much more reliable

Using a static file blanks the file when samba_gpoupdate crashes. Transformed
to a tdb file and added transactions. Add info logging to monitor gpo changes,
etc. Also handle parse errors and log an error message, then recover. Modified
the parsing code to use ConfigParser. Also, use the backslash in path names
when opening smb files, otherwise it fails against a windows server.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/gpclass.py
source4/scripting/bin/samba_gpoupdate