summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-01-03 14:05:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:16 -0500
commitb92afa3838ba14fbe66bb683949a7f3bce946faa (patch)
tree280ed146a4de978c59d43aa5231468c7182311b5 /source4/lib/ldb/common
parent5e94b016f06355289eabcd163678127988421a52 (diff)
downloadsamba-b92afa3838ba14fbe66bb683949a7f3bce946faa.tar.gz
samba-b92afa3838ba14fbe66bb683949a7f3bce946faa.tar.bz2
samba-b92afa3838ba14fbe66bb683949a7f3bce946faa.zip
r4505: Add a first very basic schema module
To use it you should provide a schema.ldb file where the schema is stored and load the module in the ldb you want to have schema check activated more info soon. currently schema checks are performed only on new object creation not on modifications Simo. (This used to be commit b8bb62f14419efd434a344606fb3f753384761a0)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index 4f53535bc4..033717a62b 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -130,7 +130,7 @@ int ldb_load_modules(struct ldb_context *ldb, const char *options[])
DLIST_ADD(ldb->modules, current);
continue;
}
-#if 0
+
if (strcmp(modules[i], "schema") == 0) {
current = schema_module_init(ldb, options);
if (!current) {
@@ -140,7 +140,7 @@ int ldb_load_modules(struct ldb_context *ldb, const char *options[])
DLIST_ADD(ldb->modules, current);
continue;
}
-#endif
+
#ifdef HAVE_DLOPEN_DISABLED
{
void *handle;