Fix provision-backend script
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 Apr 2008 13:52:52 +0000 (15:52 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 15 Apr 2008 13:52:52 +0000 (15:52 +0200)
Andrew Bartlett
(This used to be commit ee6e4f8da229ddeca856a6db94236367aae06f63)

source4/scripting/python/samba/provision.py

index a8d188e7a3e2359b5f6d4ff841ff8524e4d84dec..45965a24297ee6bb76806ce15e38b069c919fc68 100644 (file)
@@ -1166,6 +1166,7 @@ def provision_backend(setup_dir=None, message=None,
                            "NETBIOSNAME": names.netbiosname,
                            "DEFAULTSITE": DEFAULTSITE,
                            "CONFIGDN": names.configdn,
                            "NETBIOSNAME": names.netbiosname,
                            "DEFAULTSITE": DEFAULTSITE,
                            "CONFIGDN": names.configdn,
+                           "SERVERDN": names.serverdn
                            })
     
     setup_add_ldif(schemadb, setup_path("schema_samba4.ldif"), 
                            })
     
     setup_add_ldif(schemadb, setup_path("schema_samba4.ldif"), 
@@ -1241,9 +1242,9 @@ refint_attributes""" + refint_attributes + "\n";
         setup_file(setup_path("modules.conf"), paths.modulesconf,
                    {"REALM": names.realm})
         
         setup_file(setup_path("modules.conf"), paths.modulesconf,
                    {"REALM": names.realm})
         
-        setup_db_config(setup_path, file, os.path.join(paths.ldapdir, "user"))
-        setup_db_config(setup_path, file, os.path.join(paths.ldapdir, "config"))
-        setup_db_config(setup_path, file, os.path.join(paths.ldapdir, "schema"))
+        setup_db_config(setup_path, os.path.join(paths.ldapdir, "user"))
+        setup_db_config(setup_path, os.path.join(paths.ldapdir, "config"))
+        setup_db_config(setup_path, os.path.join(paths.ldapdir, "schema"))
         mapping = "schema-map-openldap-2.3"
         backend_schema = "backend-schema.schema"
 
         mapping = "schema-map-openldap-2.3"
         backend_schema = "backend-schema.schema"