diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-02-25 15:15:51 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-02-25 15:58:07 +0100 |
commit | f5d706b0ee8486f94853db8e38538c3a74b2e0bb (patch) | |
tree | 950647d11e2628b2404cb26d66085d88cfbd013d /source4 | |
parent | 341bd82fbf1f9209aae94bdbc6461805f826e39e (diff) | |
download | samba-f5d706b0ee8486f94853db8e38538c3a74b2e0bb.tar.gz samba-f5d706b0ee8486f94853db8e38538c3a74b2e0bb.tar.bz2 samba-f5d706b0ee8486f94853db8e38538c3a74b2e0bb.zip |
provision: Remove unused imports.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/provision/__init__.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/source4/scripting/python/samba/provision/__init__.py b/source4/scripting/python/samba/provision/__init__.py index 25a455169d..dccf77a5b0 100644 --- a/source4/scripting/python/samba/provision/__init__.py +++ b/source4/scripting/python/samba/provision/__init__.py @@ -37,7 +37,6 @@ import time import uuid import socket import urllib -import shutil import string import ldb @@ -81,7 +80,6 @@ from samba.provision.common import ( setup_path, setup_add_ldif, setup_modify_ldif, - setup_ldb ) from samba.provision.sambadns import ( setup_ad_dns, @@ -243,6 +241,7 @@ def find_provision_key_parameters(samdb, secretsdb, idmapdb, paths, smbconf, lp) raise ProvisioningError("Unable to find uid/gid for Domain Admins rid") return names + def update_provision_usn(samdb, low, high, id, replace=False): """Update the field provisionUSN in sam.ldb @@ -653,7 +652,6 @@ def make_smbconf(smbconf, hostname, domain, realm, serverrole, f.close() - def setup_name_mappings(idmap, sid, root_uid, nobody_uid, users_gid, wheel_gid): """setup reasonable name mappings for sam names to unix names. @@ -839,12 +837,10 @@ def setup_secretsdb(paths, session_info, backend_credentials, lp): path = paths.secrets - secrets_ldb = Ldb(path, session_info=session_info, - lp=lp) + secrets_ldb = Ldb(path, session_info=session_info, lp=lp) secrets_ldb.erase() secrets_ldb.load_ldif_file_add(setup_path("secrets_init.ldif")) - secrets_ldb = Ldb(path, session_info=session_info, - lp=lp) + secrets_ldb = Ldb(path, session_info=session_info, lp=lp) secrets_ldb.transaction_start() try: secrets_ldb.load_ldif_file_add(setup_path("secrets.ldif")) @@ -1521,6 +1517,7 @@ def provision_fill(samdb, secrets_ldb, logger, names, paths, 'ipsecNFAReference']) samdb.transaction_commit() + def provision(logger, session_info, credentials, smbconf=None, targetdir=None, samdb_fill=FILL_FULL, realm=None, rootdn=None, domaindn=None, schemadn=None, configdn=None, serverdn=None, |