ldb:kv_index: use subtransaction_cancel in transaction_cancel
[Samba.git] / source4 / dsdb / samdb / ldb_modules / util.h
blobb4102a4306e05c3ef6443d748cf42beed150b603
1 /*
2 Unix SMB/CIFS implementation.
3 Samba utility functions
5 Copyright (C) Andrew Tridgell 2009
6 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2009
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef DSDB_SAMDB_LDB_MODULES_UTIL_H
23 #define DSDB_SAMDB_LDB_MODULES_UTIL_H
25 /* predeclare some structures used by utility functions */
26 struct dsdb_schema;
27 struct dsdb_attribute;
28 struct dsdb_fsmo_extended_op;
29 struct security_descriptor;
30 struct dom_sid;
31 struct netlogon_samlogon_response;
33 enum system_control_strip_critical {
34 SYSTEM_CONTROL_KEEP_CRITICAL,
35 SYSTEM_CONTROL_STRIP_CRITICAL,
38 #include "librpc/gen_ndr/misc.h"
39 #include "librpc/gen_ndr/security.h"
40 #include "dsdb/samdb/ldb_modules/util_proto.h"
41 #include "dsdb/common/util.h"
42 #include "../libcli/netlogon/netlogon.h"
44 /* extend the dsdb_request_add_controls() flags for module
45 specific functions */
46 #define DSDB_FLAG_NEXT_MODULE 0x00100000
47 #define DSDB_FLAG_OWN_MODULE 0x00400000
48 #define DSDB_FLAG_TOP_MODULE 0x00800000
49 #define DSDB_FLAG_TRUSTED 0x01000000
50 #define DSDB_FLAG_REPLICATED_UPDATE 0x02000000
51 #define DSDB_FLAG_FORCE_ALLOW_VALIDATED_DNS_HOSTNAME_SPN_WRITE 0x04000000
53 #endif /* DSDB_SAMDB_LDB_MODULES_UTIL_H */