1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

samba-tool ntacl: remove unused imports and variables

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <noel.power@suse.com>

Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Thu Nov  1 09:40:02 CET 2018 on sn-devel-144
This commit is contained in:
Douglas Bagnall 2018-10-11 12:40:50 +13:00 committed by Douglas Bagnall
parent 5f19bf63dc
commit 790acef279

View File

@ -26,14 +26,12 @@ from samba.samdb import SamDB
from samba.samba3 import param as s3param, passdb, smbd from samba.samba3 import param as s3param, passdb, smbd
from samba import provision from samba import provision
from ldb import SCOPE_BASE
import os
from samba.auth import ( from samba.auth import (
system_session, system_session,
session_info_fill_unix, session_info_fill_unix,
copy_session_info, copy_session_info,
) )
from samba.netcmd import ( from samba.netcmd import (
Command, Command,
CommandError, CommandError,
@ -236,7 +234,6 @@ class cmd_ntacl_sysvolreset(Command):
def run(self, use_ntvfs=False, use_s3fs=False, def run(self, use_ntvfs=False, use_s3fs=False,
credopts=None, sambaopts=None, versionopts=None): credopts=None, sambaopts=None, versionopts=None):
lp = sambaopts.get_loadparm() lp = sambaopts.get_loadparm()
path = lp.private_path("secrets.ldb")
creds = credopts.get_credentials(lp) creds = credopts.get_credentials(lp)
creds.set_kerberos_state(DONT_USE_KERBEROS) creds.set_kerberos_state(DONT_USE_KERBEROS)
logger = self.get_logger() logger = self.get_logger()
@ -298,7 +295,6 @@ class cmd_ntacl_sysvolcheck(Command):
def run(self, credopts=None, sambaopts=None, versionopts=None): def run(self, credopts=None, sambaopts=None, versionopts=None):
lp = sambaopts.get_loadparm() lp = sambaopts.get_loadparm()
path = lp.private_path("secrets.ldb")
creds = credopts.get_credentials(lp) creds = credopts.get_credentials(lp)
creds.set_kerberos_state(DONT_USE_KERBEROS) creds.set_kerberos_state(DONT_USE_KERBEROS)
logger = self.get_logger() logger = self.get_logger()