summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-07-25 08:45:16 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-07-25 08:45:16 +1000
commit11798902dc51cd9eea3b7e8a0c94d0c0c08ed828 (patch)
treedec85c622041c4b8d935bf6c6006e9f88a5b0a24
parentd65f89f7b9ba749691c04a9c95e3c8eac77c492c (diff)
downloadsamba-11798902dc51cd9eea3b7e8a0c94d0c0c08ed828.tar.gz
samba-11798902dc51cd9eea3b7e8a0c94d0c0c08ed828.tar.bz2
samba-11798902dc51cd9eea3b7e8a0c94d0c0c08ed828.zip
Complain if we are told to use an ldap backend, without the type
(This used to be commit e9c3c9ad8289ee48efa998ab6b486250dcd40b52)
-rw-r--r--source4/scripting/python/samba/provision.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index 6eb47c8595..67f8cf7cc2 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -503,6 +503,8 @@ def setup_samdb_partitions(samdb_path, setup_path, message, lp, session_info,
backend_modules = ["normalise", "entryuuid", "paged_searches"]
# OpenLDAP handles subtree renames, so we don't want to do any of these things
tdb_modules_list = None
+ elif ldap_backend is not None:
+ raise "LDAP Backend specified, but LDAP Backend Type not specified"
elif serverrole == "domain controller":
backend_modules = ["repl_meta_data"]
else: