[SAMBA4][PATCH]: Fix provision instructions (bz #5497)

Andrew Kroeger andrew at sprocks.gotdns.com
Thu May 29 03:51:34 GMT 2008


All:

Please find attached a patch that removes references to smbpython in the 
HOWTO instructions.

Additionally, a small patch is included to correct a typo in provision 
when using the "ldap-backend" parameter.

The patches have also been pushed to git://git.id10ts.net/samba.git, in 
the v4-0-local branch.

Thanks,
Andrew
-------------- next part --------------
>From d4d4df0e10f32c3891c4afca72ea1b8b92c7c071 Mon Sep 17 00:00:00 2001
From: Andrew Kroeger <andrew at sprocks.gotdns.com>
Date: Fri, 23 May 2008 02:20:35 -0500
Subject: [PATCH] provision: Add missing string parameter token when assigning ldap_backend.

---
 source/scripting/python/samba/provision.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/source/scripting/python/samba/provision.py b/source/scripting/python/samba/provision.py
index 3914fa8..4a9def8 100644
--- a/source/scripting/python/samba/provision.py
+++ b/source/scripting/python/samba/provision.py
@@ -969,7 +969,7 @@ def provision(setup_dir, message, session_info,
     if ldap_backend is not None:
         if ldap_backend == "ldapi":
             # provision-backend will set this path suggested slapd command line / fedorads.inf
-            ldap_backend = "ldapi://" % urllib.quote(os.path.join(paths.private_dir, "ldap", "ldapi"), safe="")
+            ldap_backend = "ldapi://%s" % urllib.quote(os.path.join(paths.private_dir, "ldap", "ldapi"), safe="")
              
     # only install a new shares config db if there is none
     if not os.path.exists(paths.shareconf):
-- 
1.5.4.5

-------------- next part --------------
>From a4b2b82b1c2e792f80bbdfb632384e7dac39ab5b Mon Sep 17 00:00:00 2001
From: Andrew Kroeger <andrew at sprocks.gotdns.com>
Date: Sat, 24 May 2008 08:48:05 -0500
Subject: [PATCH] howto: Remove smbpython.

---
 howto.txt |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/howto.txt b/howto.txt
index ae9b0e2..3ae225d 100644
--- a/howto.txt
+++ b/howto.txt
@@ -80,12 +80,9 @@ Must be run as a user with permission to write to the install directory.
 ::
 
   # cd source
-  # bin/smbpython ./setup/provision --realm=YOUR.REALM --domain=YOURDOM \
+  # ./setup/provision --realm=YOUR.REALM --domain=YOURDOM \
   #  --adminpass=SOMEPASSWORD --server-role='domain controller'
 
-REMINDER: Use the path to smbpython, as the provision command
-          will not work with the system python.
-
 'YOURDOM' is the NT4 style domain name. 'YOUR.REALM' is your kerberos
 realm, which is typically your DNS domain name.
 
-- 
1.5.4.5



More information about the samba-technical mailing list