git.samba.org
/
idra
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e88f3c
)
s4-dsdb: check for invalid backend type
author
Andrew Tridgell
<tridge@samba.org>
Fri, 10 Sep 2010 10:16:29 +0000
(20:16 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 15 Sep 2010 05:39:34 +0000
(15:39 +1000)
source4/dsdb/samdb/ldb_modules/samba_dsdb.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
b/source4/dsdb/samdb/ldb_modules/samba_dsdb.c
index cdfc8d71839a6efce8770cef4901e0ef673ec6f7..1c5abbe23e68a40e46dca735b78d3a73119274b0 100644
(file)
--- 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) {