1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

python: Remove unused imports

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-25 11:09:52 +12:00 committed by Andrew Bartlett
parent 6c6db88dda
commit fce882ab67
46 changed files with 19 additions and 73 deletions

View File

@ -23,7 +23,6 @@
__docformat__ = "restructuredText" __docformat__ = "restructuredText"
import os import os
import sys
import time import time
import ldb import ldb
import samba.param import samba.param

View File

@ -17,12 +17,9 @@
# #
import ldb import ldb
import samba
from base64 import b64encode from base64 import b64encode
from samba import sd_utils from samba import sd_utils
from samba.ndr import ndr_unpack, ndr_pack
from samba.dcerpc import security from samba.dcerpc import security
from samba.dcerpc.security import SECINFO_DACL
from samba.descriptor import ( from samba.descriptor import (
get_managed_service_accounts_descriptor, get_managed_service_accounts_descriptor,
) )

View File

@ -19,9 +19,7 @@
import ldb import ldb
import samba import samba
from samba import sd_utils from samba import sd_utils
from samba.ndr import ndr_unpack, ndr_pack
from samba.dcerpc import security from samba.dcerpc import security
from samba.dcerpc.security import SECINFO_DACL
from samba.provision.common import setup_path from samba.provision.common import setup_path
from samba.dsdb import ( from samba.dsdb import (
DS_DOMAIN_FUNCTION_2008, DS_DOMAIN_FUNCTION_2008,

View File

@ -14,13 +14,11 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, re import os
from subprocess import Popen, PIPE
from samba.gp.gpclass import gp_pol_ext, drop_privileges, gp_file_applier, \ from samba.gp.gpclass import gp_pol_ext, drop_privileges, gp_file_applier, \
gp_misc_applier gp_misc_applier
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile
from samba.gp.gp_scripts_ext import fetch_crontab, install_crontab, \ from samba.gp.gp_scripts_ext import fetch_crontab, install_user_crontab
install_user_crontab
intro = ''' intro = '''
### autogenerated by samba ### autogenerated by samba

View File

@ -17,7 +17,6 @@
import os import os
from samba.gp.gpclass import gp_pol_ext, gp_file_applier from samba.gp.gpclass import gp_pol_ext, gp_file_applier
from samba.gp.gp_sudoers_ext import sudo_applier_func from samba.gp.gp_sudoers_ext import sudo_applier_func
from samba.gp.util.logging import log
def ext_enabled(entries): def ext_enabled(entries):
section = 'Software\\Policies\\Centrify\\UnixSettings' section = 'Software\\Policies\\Centrify\\UnixSettings'

View File

@ -20,7 +20,7 @@ from tempfile import NamedTemporaryFile
import shutil import shutil
from configparser import ConfigParser from configparser import ConfigParser
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
from samba.common import get_bytes, get_string from samba.common import get_string
from glob import glob from glob import glob
import xml.etree.ElementTree as etree import xml.etree.ElementTree as etree
from samba.gp.util.logging import log from samba.gp.util.logging import log

View File

@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os, re, numbers import os, numbers
from samba.gp.gpclass import gp_pol_ext, gp_misc_applier from samba.gp.gpclass import gp_pol_ext, gp_misc_applier
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile
from samba.gp.util.logging import log from samba.gp.util.logging import log

View File

@ -21,7 +21,7 @@ import errno
import tdb import tdb
import pwd import pwd
sys.path.insert(0, "bin/python") sys.path.insert(0, "bin/python")
from samba import NTSTATUSError, WERRORError from samba import WERRORError
from configparser import ConfigParser from configparser import ConfigParser
from io import StringIO from io import StringIO
import traceback import traceback
@ -33,12 +33,10 @@ from samba.net import Net
from samba.dcerpc import nbt from samba.dcerpc import nbt
from samba.samba3 import libsmb_samba_internal as libsmb from samba.samba3 import libsmb_samba_internal as libsmb
import samba.gpo as gpo import samba.gpo as gpo
from samba.param import LoadParm
from uuid import UUID from uuid import UUID
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile
from samba.dcerpc import preg from samba.dcerpc import preg
from samba.dcerpc import misc from samba.ndr import ndr_unpack
from samba.ndr import ndr_pack, ndr_unpack
from samba.credentials import SMB_SIGNING_REQUIRED from samba.credentials import SMB_SIGNING_REQUIRED
from samba.gp.util.logging import log from samba.gp.util.logging import log
from hashlib import blake2b from hashlib import blake2b
@ -47,7 +45,7 @@ from samba.common import get_string
from samba.samdb import SamDB from samba.samdb import SamDB
from samba.auth import system_session from samba.auth import system_session
import ldb import ldb
from samba.dsdb import UF_WORKSTATION_TRUST_ACCOUNT, UF_SERVER_TRUST_ACCOUNT, GPLINK_OPT_ENFORCE, GPLINK_OPT_DISABLE, GPO_INHERIT, GPO_BLOCK_INHERITANCE from samba.dsdb import UF_WORKSTATION_TRUST_ACCOUNT, UF_SERVER_TRUST_ACCOUNT, GPLINK_OPT_ENFORCE, GPLINK_OPT_DISABLE, GPO_BLOCK_INHERITANCE
from samba.auth import AUTH_SESSION_INFO_DEFAULT_GROUPS, AUTH_SESSION_INFO_AUTHENTICATED, AUTH_SESSION_INFO_SIMPLE_PRIVILEGES from samba.auth import AUTH_SESSION_INFO_DEFAULT_GROUPS, AUTH_SESSION_INFO_AUTHENTICATED, AUTH_SESSION_INFO_SIMPLE_PRIVILEGES
from samba.dcerpc import security from samba.dcerpc import security
import samba.security import samba.security

View File

@ -17,7 +17,6 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import json
import datetime import datetime
import logging import logging
import gettext import gettext

View File

@ -17,7 +17,6 @@
import os, re import os, re
from samba.gp.gpclass import gp_xml_ext, gp_file_applier from samba.gp.gpclass import gp_xml_ext, gp_file_applier
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile
from samba.common import get_bytes
from samba.gp.util.logging import log from samba.gp.util.logging import log
intro = ''' intro = '''

View File

@ -17,8 +17,7 @@
import os import os
from io import BytesIO from io import BytesIO
from samba.gp.gpclass import gp_xml_ext, gp_file_applier from samba.gp.gpclass import gp_xml_ext, gp_file_applier
from tempfile import NamedTemporaryFile from samba.common import get_bytes
from samba.common import get_bytes, get_string
intro = b''' intro = b'''
### autogenerated by samba ### autogenerated by samba

View File

@ -18,7 +18,7 @@ import os
from samba.gp.gpclass import gp_xml_ext, check_safe_path, gp_file_applier from samba.gp.gpclass import gp_xml_ext, check_safe_path, gp_file_applier
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile
from samba.common import get_bytes from samba.common import get_bytes
from subprocess import Popen, PIPE from subprocess import Popen
intro = b''' intro = b'''
### autogenerated by samba ### autogenerated by samba

View File

@ -17,7 +17,6 @@
import os import os
from samba.gp.gpclass import gp_xml_ext, gp_file_applier from samba.gp.gpclass import gp_xml_ext, gp_file_applier
from samba.gp.gp_sudoers_ext import sudo_applier_func from samba.gp.gp_sudoers_ext import sudo_applier_func
from samba.gp.util.logging import log
class vgp_sudoers_ext(gp_xml_ext, gp_file_applier): class vgp_sudoers_ext(gp_xml_ext, gp_file_applier):
def __str__(self): def __str__(self):

View File

@ -16,8 +16,6 @@
import os import os
from samba.gp.gpclass import gp_xml_ext, gp_file_applier from samba.gp.gpclass import gp_xml_ext, gp_file_applier
from tempfile import NamedTemporaryFile
from subprocess import Popen, PIPE
from samba.gp.util.logging import log from samba.gp.util.logging import log
class vgp_symlink_ext(gp_xml_ext, gp_file_applier): class vgp_symlink_ext(gp_xml_ext, gp_file_applier):

View File

@ -26,7 +26,6 @@ import samba
import uuid import uuid
from samba.ndr import ndr_pack, ndr_unpack from samba.ndr import ndr_pack, ndr_unpack
from samba.dcerpc import security, drsuapi, misc, nbt, lsa, drsblobs, dnsserver, dnsp from samba.dcerpc import security, drsuapi, misc, nbt, lsa, drsblobs, dnsserver, dnsp
from samba.dsdb import DS_DOMAIN_FUNCTION_2003
from samba.credentials import Credentials, DONT_USE_KERBEROS from samba.credentials import Credentials, DONT_USE_KERBEROS
from samba.provision import (secretsdb_self_join, provision, provision_fill, from samba.provision import (secretsdb_self_join, provision, provision_fill,
FILL_DRS, FILL_SUBDOMAIN, DEFAULTSITE) FILL_DRS, FILL_SUBDOMAIN, DEFAULTSITE)
@ -41,7 +40,6 @@ from base64 import b64encode
from samba import WERRORError, NTSTATUSError from samba import WERRORError, NTSTATUSError
from samba import sd_utils from samba import sd_utils
from samba.dnsserver import ARecord, AAAARecord, CNAMERecord from samba.dnsserver import ARecord, AAAARecord, CNAMERecord
import logging
import random import random
import time import time
import re import re

View File

@ -16,7 +16,6 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import samba
import subprocess import subprocess
import os import os
from samba.netcmd import CommandError from samba.netcmd import CommandError

View File

@ -15,7 +15,6 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import json
from io import StringIO from io import StringIO
import ldb import ldb
from samba.ndr import ndr_unpack, ndr_pack from samba.ndr import ndr_unpack, ndr_pack

View File

@ -66,7 +66,6 @@ from samba.dcerpc.misc import (
) )
from samba.dsdb import ( from samba.dsdb import (
DS_DOMAIN_FUNCTION_2000, DS_DOMAIN_FUNCTION_2000,
DS_DOMAIN_FUNCTION_2003,
DS_DOMAIN_FUNCTION_2008, DS_DOMAIN_FUNCTION_2008,
DS_DOMAIN_FUNCTION_2008_R2, DS_DOMAIN_FUNCTION_2008_R2,
DS_DOMAIN_FUNCTION_2012, DS_DOMAIN_FUNCTION_2012,
@ -82,7 +81,6 @@ from samba.provision.backend import (
LDBBackend, LDBBackend,
) )
from samba.descriptor import ( from samba.descriptor import (
get_empty_descriptor,
get_config_descriptor, get_config_descriptor,
get_config_partitions_descriptor, get_config_partitions_descriptor,
get_config_sites_descriptor, get_config_sites_descriptor,
@ -98,9 +96,6 @@ from samba.descriptor import (
get_domain_controllers_descriptor, get_domain_controllers_descriptor,
get_domain_delete_protected1_descriptor, get_domain_delete_protected1_descriptor,
get_domain_delete_protected2_descriptor, get_domain_delete_protected2_descriptor,
get_dns_partition_descriptor,
get_dns_forest_microsoft_dns_descriptor,
get_dns_domain_microsoft_dns_descriptor,
get_managed_service_accounts_descriptor, get_managed_service_accounts_descriptor,
) )
from samba.provision.common import ( from samba.provision.common import (
@ -109,7 +104,6 @@ from samba.provision.common import (
setup_modify_ldif, setup_modify_ldif,
FILL_FULL, FILL_FULL,
FILL_SUBDOMAIN, FILL_SUBDOMAIN,
FILL_NT4SYNC,
FILL_DRS FILL_DRS
) )
from samba.provision.sambadns import ( from samba.provision.sambadns import (

View File

@ -36,8 +36,6 @@ from samba.dcerpc import dnsp, misc, security
from samba.dsdb import ( from samba.dsdb import (
DS_DOMAIN_FUNCTION_2000, DS_DOMAIN_FUNCTION_2000,
DS_DOMAIN_FUNCTION_2003, DS_DOMAIN_FUNCTION_2003,
DS_DOMAIN_FUNCTION_2008_R2,
DS_DOMAIN_FUNCTION_2012_R2,
DS_DOMAIN_FUNCTION_2016, DS_DOMAIN_FUNCTION_2016,
DS_GUID_USERS_CONTAINER DS_GUID_USERS_CONTAINER
) )
@ -56,8 +54,6 @@ from samba.provision.common import (
setup_ldb, setup_ldb,
FILL_FULL, FILL_FULL,
FILL_SUBDOMAIN, FILL_SUBDOMAIN,
FILL_NT4SYNC,
FILL_DRS,
) )
from samba.samdb import get_default_backend_store from samba.samdb import get_default_backend_store

View File

@ -18,7 +18,7 @@
import os import os
import tarfile import tarfile
from pathlib import Path from pathlib import Path
from tarfile import ExtractError, TarInfo, TarFile as UnsafeTarFile from tarfile import ExtractError, TarFile as UnsafeTarFile
class TarFile(UnsafeTarFile): class TarFile(UnsafeTarFile):

View File

@ -17,7 +17,6 @@
"""Subunit test protocol.""" """Subunit test protocol."""
import samba
import unittest import unittest

View File

@ -21,7 +21,7 @@ import samba
import os import os
import samba.tests import samba.tests
from samba.common import normalise_int32 from samba.common import normalise_int32
from samba.samdb import SamDB, dsdb_Dn from samba.samdb import dsdb_Dn
class CommonTests(samba.tests.TestCaseInTempDir): class CommonTests(samba.tests.TestCaseInTempDir):

View File

@ -14,9 +14,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from unittest import TestSuite
import os import os
import random
from samba.tests import TestCase from samba.tests import TestCase
from samba import compression from samba import compression

View File

@ -18,7 +18,6 @@
"""Tests for samba.dcerpc.samr.password""" """Tests for samba.dcerpc.samr.password"""
import os
import ctypes import ctypes
import samba.tests import samba.tests

View File

@ -26,7 +26,7 @@ import ldb
from samba import credentials from samba import credentials
from samba.dcerpc import dns, dnsp, dnsserver from samba.dcerpc import dns, dnsp, dnsserver
from samba.dnsserver import TXTRecord, ARecord from samba.dnsserver import TXTRecord, ARecord
from samba.dnsserver import recbuf_from_string, ipv6_normalise from samba.dnsserver import ipv6_normalise
from samba.tests.subunitrun import SubunitOptions, TestProgram from samba.tests.subunitrun import SubunitOptions, TestProgram
from samba import werror, WERRORError from samba import werror, WERRORError
from samba.tests.dns_base import DNSTest from samba.tests.dns_base import DNSTest

View File

@ -25,7 +25,7 @@ import errno
import samba.ndr as ndr import samba.ndr as ndr
from samba import credentials from samba import credentials
from samba.tests import TestCase from samba.tests import TestCase
from samba.dcerpc import dns, dnsp from samba.dcerpc import dns
from samba.tests.subunitrun import SubunitOptions, TestProgram from samba.tests.subunitrun import SubunitOptions, TestProgram
import samba.getopt as options import samba.getopt as options
import optparse import optparse

View File

@ -21,9 +21,6 @@ import tempfile
from samba.tests import BlackboxTestCase, BlackboxProcessError from samba.tests import BlackboxTestCase, BlackboxProcessError
from samba.netcmd import CommandError from samba.netcmd import CommandError
from samba.param import LoadParm from samba.param import LoadParm
from samba.join import join_DC
from samba.credentials import Credentials
from samba.logger import get_samba_logger
from samba import safe_tarfile as tarfile from samba import safe_tarfile as tarfile

View File

@ -16,7 +16,6 @@
# #
from samba.tests import TestCase from samba.tests import TestCase
from samba import dsdb_dns from samba import dsdb_dns
import time
def unix2nttime(t): def unix2nttime(t):

View File

@ -21,7 +21,6 @@ from samba.tests.samdb import SamDBTestCase
from samba.samdb import SamDB from samba.samdb import SamDB
import ldb import ldb
import os import os
import samba
import gc import gc
import time import time

View File

@ -19,7 +19,6 @@
Tests GetDCNameEx calls in NETLOGON Tests GetDCNameEx calls in NETLOGON
""" """
from samba import auth
from samba import WERRORError, werror from samba import WERRORError, werror
import samba.tests import samba.tests
import os import os

View File

@ -27,7 +27,7 @@ from tempfile import NamedTemporaryFile, TemporaryDirectory
from samba.gp import gpclass from samba.gp import gpclass
# Disable privilege dropping for testing # Disable privilege dropping for testing
gpclass.drop_privileges = lambda _, func, *args : func(*args) gpclass.drop_privileges = lambda _, func, *args : func(*args)
from samba.gp.gp_sec_ext import gp_krb_ext, gp_access_ext from samba.gp.gp_sec_ext import gp_krb_ext
from samba.gp.gp_scripts_ext import gp_scripts_ext, gp_user_scripts_ext from samba.gp.gp_scripts_ext import gp_scripts_ext, gp_user_scripts_ext
from samba.gp.gp_sudoers_ext import gp_sudoers_ext from samba.gp.gp_sudoers_ext import gp_sudoers_ext
from samba.gp.vgp_sudoers_ext import vgp_sudoers_ext from samba.gp.vgp_sudoers_ext import vgp_sudoers_ext

View File

@ -18,9 +18,7 @@ import os
from samba import tests from samba import tests
from samba.gp.gpclass import GPOStorage from samba.gp.gpclass import GPOStorage
from samba.param import LoadParm from samba.param import LoadParm
from samba.credentials import Credentials
from samba.gp.gp_sec_ext import gp_access_ext from samba.gp.gp_sec_ext import gp_access_ext
import logging
class GPOTests(tests.TestCase): class GPOTests(tests.TestCase):
def setUp(self): def setUp(self):

View File

@ -26,7 +26,7 @@ from samba.credentials import (
from samba.dsdb import ( from samba.dsdb import (
UF_WORKSTATION_TRUST_ACCOUNT, UF_WORKSTATION_TRUST_ACCOUNT,
UF_PASSWD_NOTREQD, UF_PASSWD_NOTREQD,
UF_NORMAL_ACCOUNT) )
from samba.samdb import SamDB from samba.samdb import SamDB
"""KRB5 Integration tests for pycredentials. """KRB5 Integration tests for pycredentials.

View File

@ -26,7 +26,7 @@ from samba.tests import TestCase, ldb_err
from samba.tests import DynamicTestCase from samba.tests import DynamicTestCase
import samba.getopt as options import samba.getopt as options
import optparse import optparse
from samba.colour import c_RED, c_GREEN, c_DARK_YELLOW from samba.colour import c_DARK_YELLOW
import re import re
import pprint import pprint
from samba.dsdb import ( from samba.dsdb import (

View File

@ -16,7 +16,7 @@
from samba import Ldb,tests from samba import Ldb,tests
from samba.samba3 import param as s3param from samba.samba3 import param as s3param
from samba import (credentials,NTSTATUSError) from samba import credentials
import os import os
class LdapWhoami(tests.TestCase): class LdapWhoami(tests.TestCase):

View File

@ -18,7 +18,6 @@
from samba.tests import TestCase from samba.tests import TestCase
import os import os
import samba
from samba.credentials import Credentials from samba.credentials import Credentials
from samba.dcerpc import netlogon from samba.dcerpc import netlogon
from samba import NTSTATUSError, ntstatus from samba import NTSTATUSError, ntstatus

View File

@ -39,7 +39,6 @@ from samba.tests.password_hash import (
PassWordHashTests, PassWordHashTests,
get_package, get_package,
USER_NAME, USER_NAME,
USER_PASS
) )
from samba.samdb import SamDB from samba.samdb import SamDB
from samba.ndr import ndr_unpack from samba.ndr import ndr_unpack

View File

@ -15,7 +15,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import tarfile import tarfile
from samba import safe_tarfile from samba import safe_tarfile
import tempfile
import os import os
from samba.tests import TestCaseInTempDir from samba.tests import TestCaseInTempDir

View File

@ -20,10 +20,9 @@
from samba.credentials import Credentials from samba.credentials import Credentials
from samba.samdb import SamDB from samba.samdb import SamDB
from samba.auth import system_session from samba.auth import system_session
from samba.tests import TestCase
from samba.param import LoadParm from samba.param import LoadParm
from samba import dsdb, functional_level from samba import dsdb, functional_level
import ldb, samba import ldb
from samba.tests.samba_tool.base import SambaToolCmdTest from samba.tests.samba_tool.base import SambaToolCmdTest

View File

@ -30,10 +30,8 @@ from samba.dcerpc import preg
from samba.ndr import ndr_pack, ndr_unpack from samba.ndr import ndr_pack, ndr_unpack
from samba.common import get_string from samba.common import get_string
from configparser import ConfigParser from configparser import ConfigParser
from io import StringIO
import xml.etree.ElementTree as etree import xml.etree.ElementTree as etree
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile
from time import sleep
import re import re
from samba.gp.gpclass import check_guid from samba.gp.gpclass import check_guid
from samba.gp_parse.gp_ini import GPTIniParser from samba.gp_parse.gp_ini import GPTIniParser

View File

@ -19,7 +19,6 @@
from samba.tests import TestCaseInTempDir from samba.tests import TestCaseInTempDir
from samba.samdb import SamDB from samba.samdb import SamDB
from ldb import LdbError, ERR_OPERATIONS_ERROR from ldb import LdbError, ERR_OPERATIONS_ERROR
import os
import errno import errno

View File

@ -28,7 +28,6 @@ from samba.colour import colourdiff
from hashlib import md5 from hashlib import md5
import gzip import gzip
import os
import json import json
from pathlib import Path from pathlib import Path

View File

@ -24,7 +24,6 @@ os.environ["PYTHONUNBUFFERED"] = "1"
import samba import samba
import random import random
from samba.tests import TestCase from samba.tests import TestCase
from samba import NTSTATUSError
from samba import credentials from samba import credentials
from samba.ntstatus import NT_STATUS_NOTIFY_CLEANUP from samba.ntstatus import NT_STATUS_NOTIFY_CLEANUP
from samba.samba3 import libsmb_samba_internal as libsmb from samba.samba3 import libsmb_samba_internal as libsmb

View File

@ -17,7 +17,6 @@
from samba.samba3 import libsmb_samba_internal as libsmb from samba.samba3 import libsmb_samba_internal as libsmb
from samba import (ntstatus,NTSTATUSError) from samba import (ntstatus,NTSTATUSError)
from samba.dcerpc import security as sec
import samba.tests.libsmb import samba.tests.libsmb
import stat import stat

View File

@ -25,7 +25,6 @@ import time
import pwd import pwd
from samba import Ldb, registry from samba import Ldb, registry
from samba.param import LoadParm
from samba.provision import provision, ProvisioningError, setsysvolacl from samba.provision import provision, ProvisioningError, setsysvolacl
from samba.provision.common import FILL_FULL from samba.provision.common import FILL_FULL
from samba.samba3 import passdb from samba.samba3 import passdb

View File

@ -27,7 +27,7 @@ import shutil
import samba import samba
from samba.common import cmp from samba.common import cmp
from samba import Ldb, version, ntacls from samba import Ldb, version
from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL, SCOPE_BASE
import ldb import ldb
from samba.provision import (provision_paths_from_lp, from samba.provision import (provision_paths_from_lp,