Samba4/LDB/Partition: Difference between revisions

From SambaWiki
No edit summary
 
No edit summary
Line 1: Line 1:
= Structures =
= Structures =

== dsdb_partition ==

<pre>
struct dsdb_partition {
struct ldb_module *module;
struct dsdb_control_current_partition *ctrl;
};
</pre>


== part_request ==
== part_request ==
Line 23: Line 32:
};
};
</pre>
</pre>

= Methods =

== partition_init() ==

This method reads the partition configuration from the SAM database, connects to the backends, registers the partitions, load modules, and register controls.

The configuration is stored in the @PARTITION entry in the following attributes:
* partition
* replicateEntries
* modules

This method registers the following controls:
* domain scope (1.2.840.113556.1.4.1339)
* search options (1.2.840.113556.1.4.1340)

Revision as of 20:20, 13 October 2009

Structures

dsdb_partition

struct dsdb_partition {
    struct ldb_module *module;
    struct dsdb_control_current_partition *ctrl;
};

part_request

struct part_request {
    struct ldb_module *module;
    struct ldb_request *req;
};

partition_context

struct partition_context {
    struct ldb_module *module;
    struct ldb_request *req;
    bool got_success;

    struct part_request *part_req;
    int num_requests;
    int finished_requests;
};

Methods

partition_init()

This method reads the partition configuration from the SAM database, connects to the backends, registers the partitions, load modules, and register controls.

The configuration is stored in the @PARTITION entry in the following attributes:

  • partition
  • replicateEntries
  • modules

This method registers the following controls:

  • domain scope (1.2.840.113556.1.4.1339)
  • search options (1.2.840.113556.1.4.1340)