summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-10 20:16:29 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-15 15:39:34 +1000
commita17da707858baac78d5938313d935572520fabf1 (patch)
tree150f608f0f0a9cb04cd2e70bc300626d996c48a4 /source4/dsdb
parent3e88f3cf339e49aedfaf949646df1e4b217435f4 (diff)
downloadsamba-a17da707858baac78d5938313d935572520fabf1.tar.gz
samba-a17da707858baac78d5938313d935572520fabf1.tar.bz2
samba-a17da707858baac78d5938313d935572520fabf1.zip
s4-dsdb: check for invalid backend type
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samba_dsdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
index cdfc8d7183..1c5abbe23e 100644
--- a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
+++ b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
@@ -259,6 +259,8 @@ static int samba_dsdb_init(struct ldb_module *module)
link_modules = openldap_modules;
backend_modules = openldap_backend_modules;
extended_dn_module = extended_dn_module_openldap;
+ } else {
+ return ldb_error(ldb, LDB_ERR_OPERATIONS_ERROR, "invalid backend type");
}
ret = ldb_set_opaque(ldb, "readOnlySchema", (void*)1);
if (ret != LDB_SUCCESS) {