provision: Add missing string parameter token when assigning ldap_backend.
authorAndrew Kroeger <andrew@sprocks.gotdns.com>
Fri, 23 May 2008 07:20:35 +0000 (02:20 -0500)
committerAndrew Kroeger <andrew@sprocks.gotdns.com>
Thu, 29 May 2008 03:43:25 +0000 (22:43 -0500)
(This used to be commit 7d26145a7fba22b2e1c7c57053aab3180a22089d)

source4/scripting/python/samba/provision.py

index 3914fa8376a5c871be5e4df5ac053733e6cf9759..4a9def8aa9ccf16d4cd441ff77cdf8832fa5717e 100644 (file)
@@ -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):