s4-dsdb: some more attribuutes that we should only give if asked for
[ira/wip.git] / source4 / dsdb / samdb / samdb.h
index efc467865cd7670a7ff8a812e9f6acfb6168a369..33f4fd38310f8c6c7cc4bcdd288364599349ce31 100644 (file)
@@ -27,7 +27,7 @@ struct dsdb_control_current_partition;
 struct dsdb_extended_replicated_object;
 struct dsdb_extended_replicated_objects;
 struct loadparm_context;
-struct event_context;
+struct tevent_context;
 
 #include "librpc/gen_ndr/security.h"
 #include "lib/ldb/include/ldb.h"
@@ -38,22 +38,19 @@ struct event_context;
 #include "dsdb/schema/schema.h"
 #include "dsdb/samdb/samdb_proto.h"
 #include "dsdb/common/proto.h"
-#include "dsdb/common/flags.h"
+#include "dsdb/common/dsdb_dn.h"
+#include "../libds/common/flags.h"
 
 #define DSDB_CONTROL_CURRENT_PARTITION_OID "1.3.6.1.4.1.7165.4.3.2"
 struct dsdb_control_current_partition {
        /* 
         * this is the version of the dsdb_control_current_partition
         * version 0: initial implementation
+        * version 1: got rid of backend and module fields
         */
-#define DSDB_CONTROL_CURRENT_PARTITION_VERSION 0
+#define DSDB_CONTROL_CURRENT_PARTITION_VERSION 1
        uint32_t version;
-
        struct ldb_dn *dn;
-
-       const char *backend;
-
-       struct ldb_module *module;
 };
 
 #define DSDB_CONTROL_REPLICATED_UPDATE_OID "1.3.6.1.4.1.7165.4.3.3"
@@ -77,7 +74,7 @@ struct dsdb_extended_replicated_objects {
         * this is the version of the dsdb_extended_replicated_objects
         * version 0: initial implementation
         */
-#define DSDB_EXTENDED_REPLICATED_OBJECTS_VERSION 0
+#define DSDB_EXTENDED_REPLICATED_OBJECTS_VERSION 1
        uint32_t version;
 
        struct ldb_dn *partition_dn;
@@ -87,6 +84,9 @@ struct dsdb_extended_replicated_objects {
 
        uint32_t num_objects;
        struct dsdb_extended_replicated_object *objects;
+
+       uint32_t linked_attributes_count;
+       const struct drsuapi_DsReplicaLinkedAttribute *linked_attributes;
 };
 
 struct dsdb_naming_fsmo {
@@ -99,6 +99,11 @@ struct dsdb_pdc_fsmo {
        struct ldb_dn *master_dn;
 };
 
+#define DSDB_EXTENDED_CREATE_PARTITION_OID "1.3.6.1.4.1.7165.4.4.4"
+struct dsdb_create_partition_exop {
+       struct ldb_dn *new_dn;
+};
+
 /*
  * the schema_dn is passed as struct ldb_dn in
  * req->op.extended.data
@@ -127,4 +132,12 @@ struct dsdb_openldap_dereference_result_control {
        struct dsdb_openldap_dereference_result **attributes;
 };
 
+#define DSDB_PARTITION_DN "@PARTITION"
+#define DSDB_PARTITION_ATTR "partition"
+
+#define DSDB_EXTENDED_DN_STORE_FORMAT_OPAQUE_NAME "dsdb_extended_dn_store_format"
+struct dsdb_extended_dn_store_format {
+       bool store_extended_dn_in_ldb;
+};
+
 #endif /* __SAMDB_H__ */