KCC: load samdb before calling kcc.run()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Mon, 22 Jun 2015 04:38:29 +0000 (16:38 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 Oct 2015 04:08:15 +0000 (05:08 +0100)
commit8fe9992cffed82e9e26ebe8185f372c8a1dfb3a9
treea9ef08c1f0f3d98c2801c3f680f53212b1bb33f4
parent47b3334f48f21118ba1f61e841eb95920f384ee4
KCC: load samdb before calling kcc.run()

kcc.run() is a mega-function that does nearly everything, including
loading the database. The --list-valid-dsas and --test-all-reps-from
tasks also want to load the database, but not do all that other run()
stuff, so it makes sense to pull it out. When the samdb has not been
loaded, run() will still load it -- this avoids having to change all
the tests.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/kcc/__init__.py
source4/scripting/bin/samba_kcc