s4:resolve_oids LDB module - not really a change but a nicer method to call "talloc_r...
[Samba/nascimento.git] / source4 / dsdb / samdb / ldb_modules / partition.h
blob594634cc99032522d797dddca28aca42981c7b04
1 /*
2 Partitions ldb module
4 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2006
5 Copyright (C) Stefan Metzmacher <metze@samba.org> 2007
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include "includes.h"
21 #include "lib/ldb/include/ldb.h"
22 #include "lib/ldb/include/ldb_errors.h"
23 #include "lib/ldb/include/ldb_module.h"
24 #include "lib/ldb/include/ldb_private.h"
25 #include "dsdb/samdb/samdb.h"
26 #include "dsdb/samdb/ldb_modules/util.h"
27 #include "system/locale.h"
28 #include "param/param.h"
30 struct dsdb_partition {
31 struct ldb_module *module;
32 struct dsdb_control_current_partition *ctrl;
33 const char *backend_url;
34 DATA_BLOB orig_record;
37 struct partition_module {
38 const char **modules;
39 struct ldb_dn *dn;
42 struct partition_private_data {
43 struct dsdb_partition **partitions;
44 struct ldb_dn **replicate;
46 struct partition_module **modules;
47 const char *ldapBackend;
49 uint64_t metadata_seq;
50 uint32_t in_transaction;
52 struct ldb_message *forced_module_msg;
55 #include "dsdb/samdb/ldb_modules/partition_proto.h"