python: remove string_to_byte_array()
[samba.git] / source4 / dsdb / samdb / ldb_modules / util.h
1 /*
2    Unix SMB/CIFS implementation.
3    Samba utility functions
4
5    Copyright (C) Andrew Tridgell 2009
6    Copyright (C) Andrew Bartlett <abartlet@samba.org> 2009
7
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.
12
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.
17
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/>.
20 */
21
22 #ifndef DSDB_SAMDB_LDB_MODULES_UTIL_H
23 #define DSDB_SAMDB_LDB_MODULES_UTIL_H
24
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;
32
33 enum system_control_strip_critical {
34         SYSTEM_CONTROL_KEEP_CRITICAL,
35         SYSTEM_CONTROL_STRIP_CRITICAL,
36 };
37
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"
43
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
52
53 #endif /* DSDB_SAMDB_LDB_MODULES_UTIL_H */