summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-03-28 10:19:21 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-03-28 10:19:21 +1100
commitde80e63efa857e39144650117985e9148eab033e (patch)
tree09493025db566fe829cd9ae23dc534d7af69b351 /source4/scripting
parentb422a78df24201392232df10cf6a1ca1a522807e (diff)
parente15b35e3897e63b9e815a04101436439d4aebdef (diff)
downloadsamba-de80e63efa857e39144650117985e9148eab033e.tar.gz
samba-de80e63efa857e39144650117985e9148eab033e.tar.bz2
samba-de80e63efa857e39144650117985e9148eab033e.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit 59d8d17093efac3a177a032f2e121ea6f43a96c8)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/config.m42
-rw-r--r--source4/scripting/python/samba/provision.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/source4/scripting/python/config.m4 b/source4/scripting/python/config.m4
index aac98ebc60..3790071ba8 100644
--- a/source4/scripting/python/config.m4
+++ b/source4/scripting/python/config.m4
@@ -23,9 +23,7 @@ AC_DEFUN([TRY_LINK_PYTHON],
AC_TRY_LINK([
/* we have our own configure tests */
- #define Py_PYCONFIG_H 1
#include <Python.h>
- #include <stdlib.h>
],[
Py_InitModule(NULL, NULL);
],[
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index 47d00f8871..e97ce694b4 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -373,7 +373,10 @@ def load_or_make_smbconf(smbconf, setup_path, hostname, domain, realm, serverrol
lockdir_line = "lock dir = " + os.path.abspath(targetdir)
default_lp.set("lock dir", os.path.abspath(targetdir))
-
+ else:
+ privatedir_line = "private_dir = " + default_lp.get("private dir")
+ lockdir_line = "lock dir = " + default_lp.get("lock dir")
+
sysvol = os.path.join(default_lp.get("lock dir"), "sysvol")
netlogon = os.path.join(sysvol, realm.lower(), "scripts")