summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-04-20 14:24:22 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-04-20 14:24:22 +1000
commit538a07a80aae72b57e5c23133158c7f214d0c27a (patch)
treebf4b70ad39c9bfeaa8b44b949b89656b7d3d0d12 /source4/scripting
parentea5cf7ce05f295c34d0fca194ed7d8691f1e04ab (diff)
downloadsamba-538a07a80aae72b57e5c23133158c7f214d0c27a.tar.gz
samba-538a07a80aae72b57e5c23133158c7f214d0c27a.tar.bz2
samba-538a07a80aae72b57e5c23133158c7f214d0c27a.zip
s4:provisionbackend Print the command we failed to start slapd with
This makes it easier to put failed startups into a debugger. Andrew Bartlett
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/provisionbackend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/provisionbackend.py b/source4/scripting/python/samba/provisionbackend.py
index 08deb4a163..25e416ce04 100644
--- a/source4/scripting/python/samba/provisionbackend.py
+++ b/source4/scripting/python/samba/provisionbackend.py
@@ -232,7 +232,8 @@ class LDAPBackend(ProvisionBackend):
return
except LdbError:
time.sleep(1)
-
+
+ self.message("Could not start slapd with: %s" % "\'" + "\' \'".join(self.slapd_provision_command) + "\'")
raise ProvisioningError("slapd died before we could make a connection to it")
def shutdown(self):