python SamDB: init default flags to FLG_DONT_CREATE_DB
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 8 Jan 2018 18:43:18 +0000 (07:43 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Feb 2018 22:45:23 +0000 (23:45 +0100)
commit7009479b7a91715543e228412435ab2fdb6221ae
tree9c2ecaec3568366d3e0715a145760dc66a67c35f
parent736e438bf44d84d30d8d5091a3f915ef307a6b45
python SamDB: init default flags to FLG_DONT_CREATE_DB

The current defaults for SamDB are to create the database file if it does not
exist.  Most of the uses of SamDB assume the database already exists, and so
auto-creation is not the desired behaviour.

TDB will overwrite an existing non TDB file with a newly created TDB file.
This becomes an issue when using alternate database file formats i.e. lmdb.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/samdb.py
python/samba/upgradehelpers.py
selftest/knownfail.d/samdb [deleted file]