diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-17 08:36:39 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:50:55 +0100 |
commit | 09915ce8b7edcf23335d570d70f79797afe83a71 (patch) | |
tree | ab2cdc82169d6211bdefca79fe2b509750a9447c /source4/scripting | |
parent | 01b96e47cd77c345ac27c4c882e353852e49f22b (diff) | |
download | samba-09915ce8b7edcf23335d570d70f79797afe83a71.tar.gz samba-09915ce8b7edcf23335d570d70f79797afe83a71.tar.bz2 samba-09915ce8b7edcf23335d570d70f79797afe83a71.zip |
r26499: Allow testing python provision by setting the PROVISION_PYTHON environment variable.
(This used to be commit 379d0bbb2f9e0cd9b1855fd77bbb89827e0315ad)
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index 63e50897fe..60dcf06c83 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -189,7 +189,6 @@ def ldb_delete(ldb): ldb.connect(ldb.filename) - def open_ldb(session_info, credentials, dbname): assert session_info is not None try: @@ -641,25 +640,16 @@ def provision_guess(lp): return subobj - def load_schema(setup_dir, subobj, samdb): """Load schema.""" src = os.path.join(setup_dir, "schema.ldif") - schema_data = open(src, 'r').read() - src = os.path.join(setup_dir, "schema_samba4.ldif") - schema_data += open(src, 'r').read() - schema_data = substitute_var(schema_data, subobj.subst_vars()) - src = os.path.join(setup_dir, "provision_schema_basedn_modify.ldif") - head_data = open(src, 'r').read() - head_data = substitute_var(head_data, subobj.subst_vars()) - samdb.attach_dsdb_schema_from_ldif(head_data, schema_data) |