summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2009-11-03 19:45:22 -0600
committerAndrew Bartlett <abartlet@samba.org>2009-11-04 14:58:25 +1100
commitc9571f7277b1cf68e034ec3482c5474885d9381f (patch)
treeb68a829ca523319e1515b627bee70920128a6b0f /source4/scripting/python
parentb5ce97511aa33aa439a371f114ba7bb0cf822a16 (diff)
downloadsamba-c9571f7277b1cf68e034ec3482c5474885d9381f.tar.gz
samba-c9571f7277b1cf68e034ec3482c5474885d9381f.tar.bz2
samba-c9571f7277b1cf68e034ec3482c5474885d9381f.zip
s4:provisioning - Fixed minor bugs in provisioning tool and partition module.
Diffstat (limited to 'source4/scripting/python')
-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 8f1b94f1bd..f809202568 100644
--- a/source4/scripting/python/samba/provisionbackend.py
+++ b/source4/scripting/python/samba/provisionbackend.py
@@ -31,6 +31,7 @@ import sys
import uuid
import time
import shutil
+import subprocess
from samba import read_and_sub_file
from samba import Ldb
@@ -203,7 +204,7 @@ class ProvisionBackend(object):
self.slapd_command_escaped = "\'" + "\' \'".join(self.slapd_command) + "\'"
setup_file(setup_path("ldap_backend_startup.sh"), paths.ldapdir + "/ldap_backend_startup.sh", {
- "SLAPD_COMMAND" : slapd_command})
+ "SLAPD_COMMAND" : self.slapd_command_escaped})
# Now start the slapd, so we can provision onto it. We keep the
# subprocess context around, to kill this off at the successful