r12733: Merge ldap/ldb controls into main tree
[mdw/samba.git] / source4 / dsdb / samdb / ldb_modules / objectguid.c
index c9063af6ef950f5b2ed193be65d2990276d5a1b8..935f92c55bd009d5cd46e6f53a129e07cf07b0f8 100644 (file)
@@ -128,10 +128,12 @@ static const struct ldb_module_ops objectguid_ops = {
 
 
 /* the init function */
-struct ldb_module *objectguid_module_init(struct ldb_context *ldb, const char *options[])
+struct ldb_module *objectguid_module_init(struct ldb_context *ldb, int stage, const char *options[])
 {
        struct ldb_module *ctx;
 
+       if (stage != LDB_MODULES_INIT_STAGE_1) return NULL;
+
        ctx = talloc(ldb, struct ldb_module);
        if (!ctx)
                return NULL;