domain.py: Make schemaupgrade option work regardless of config
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 5 Oct 2017 02:43:53 +0000 (15:43 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Dec 2017 07:20:15 +0000 (08:20 +0100)
commitf9059c7c1b83935dcd4b3bb645c926979c26a207
tree62d046d24c5a87591446d32f41e1fb5470d9e3b6
parent580e6babaf93a9a88e993527f0731408a0f2d9bf
domain.py: Make schemaupgrade option work regardless of config

Currently the 'samba-tool domain schemaupgrade' command will only work
if the Samba config has the non-default option 'dsdb:schema update
allowed = yes'. The whole point of running this samba-tool option is to
upgrade the schema, so it would seem to make sense to bypass the setting
temporarily, in order to apply the schema updates successfully.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain.py