mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
5f19bf63dc
commit
790acef279
@ -26,14 +26,12 @@ from samba.samdb import SamDB
|
||||
from samba.samba3 import param as s3param, passdb, smbd
|
||||
from samba import provision
|
||||
|
||||
from ldb import SCOPE_BASE
|
||||
import os
|
||||
|
||||
from samba.auth import (
|
||||
system_session,
|
||||
session_info_fill_unix,
|
||||
copy_session_info,
|
||||
)
|
||||
|
||||
from samba.netcmd import (
|
||||
Command,
|
||||
CommandError,
|
||||
@ -236,7 +234,6 @@ class cmd_ntacl_sysvolreset(Command):
|
||||
def run(self, use_ntvfs=False, use_s3fs=False,
|
||||
credopts=None, sambaopts=None, versionopts=None):
|
||||
lp = sambaopts.get_loadparm()
|
||||
path = lp.private_path("secrets.ldb")
|
||||
creds = credopts.get_credentials(lp)
|
||||
creds.set_kerberos_state(DONT_USE_KERBEROS)
|
||||
logger = self.get_logger()
|
||||
@ -298,7 +295,6 @@ class cmd_ntacl_sysvolcheck(Command):
|
||||
|
||||
def run(self, credopts=None, sambaopts=None, versionopts=None):
|
||||
lp = sambaopts.get_loadparm()
|
||||
path = lp.private_path("secrets.ldb")
|
||||
creds = credopts.get_credentials(lp)
|
||||
creds.set_kerberos_state(DONT_USE_KERBEROS)
|
||||
logger = self.get_logger()
|
||||
|
Loading…
Reference in New Issue
Block a user