Fix bug 8196 - Many (newer) header files don't have copyright / GPL header comments.
[obnox/samba-ctdb.git] / source4 / dsdb / common / dsdb_dn.h
1 #ifndef __DSDB_COMMON_DSDB_DN_H__
2 #define __DSDB_COMMON_DSDB_DN_H__
3 /*
4    Unix SMB/CIFS implementation.
5
6    (C) 2011 Samba Team.
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 enum dsdb_dn_format {
23         DSDB_NORMAL_DN,
24         DSDB_BINARY_DN,
25         DSDB_STRING_DN,
26         DSDB_INVALID_DN
27 };
28
29 struct dsdb_dn {
30         struct ldb_dn *dn;
31         DATA_BLOB extra_part;
32         enum dsdb_dn_format dn_format;
33         const char *oid;
34 };
35
36 #define DSDB_SYNTAX_BINARY_DN   "1.2.840.113556.1.4.903"
37 #define DSDB_SYNTAX_STRING_DN   "1.2.840.113556.1.4.904"
38 #define DSDB_SYNTAX_OR_NAME     "1.2.840.113556.1.4.1221"
39
40
41 /* RMD_FLAGS component in a DN */
42 #define DSDB_RMD_FLAG_DELETED     1
43 #define DSDB_RMD_FLAG_INVISIBLE   2
44 #endif