s4:python Push some helper functions from SamDB into samba.Ldb
authorAndrew Bartlett <abartlet@samba.org>
Thu, 13 Aug 2009 04:37:06 +0000 (14:37 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 16 Aug 2009 23:50:57 +0000 (09:50 +1000)
commit14aff84adca85fd8124212e735c54363a577450a
tree2106141c91f0aed341be302e65529b70a46cf45d
parent51d2d3df6db016250c12bf8c97374402dc4cb277
s4:python Push some helper functions from SamDB into samba.Ldb

This makes it possible to do a bit more of the provision with Samba
helpers, but without some of the otherwise useful things (such as
loading in the global schema) that SamDB does.

Rewrite provision_erase to use a recursive search, rather than a
looping subtree search.  This is much more efficient, particularly now
we have one-level indexes enabled.

Delete the @INDEX and similar records *after* deleting all other
visible records, this hopefully also assists performance.

Andrew Bartlett
source4/scripting/python/samba/__init__.py
source4/scripting/python/samba/samdb.py