r25940: Rework the samldb and templates handling.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Nov 2007 21:38:55 +0000 (22:38 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:45:10 +0000 (05:45 +0100)
commitf1ab90c88c782c693b41795d70368650806543b5
treece00cece0055e527a6ada6c14e1d5f5653208827
parente47df4a0fe5efd91f0355aa13c9b50c7be789767
r25940: Rework the samldb and templates handling.

Templates just don't belong in the sam.ldb, as they don't obey any of
the other rules.  This moves them to a seperate templates.ldb.

In samldb, this patch reworks the duplicate SID and Name detection
code, to use ldb_search_exp_fmt() rather than gendb_search.  This
returns far more useful errors, which we now handle and report better.

The call to samdb_search_for_parent_domain() has been moved in samldb,
to allow both the account and SID uniqueness checks to be in the same
domain.  This function also returns better errors.

dcesrv_drsuapi.c is updated for the new prototype of
samdb_search_for_parent_domain()

Andrew Bartlett
source/dsdb/samdb/ldb_modules/samldb.c
source/dsdb/samdb/samdb.c
source/rpc_server/drsuapi/dcesrv_drsuapi.c
source/scripting/libjs/provision.js
source/setup/provision_templates.ldif