summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2023-02-13 14:55:31 +1300
committerAndrew Bartlett <abartlet@samba.org>2023-05-16 23:29:32 +0000
commit2236daa7ca715e6997756e70d5cb5097970ba437 (patch)
treefd62a63014a4775f2bf8810333669666a3b03024 /source4
parentf9501f2ae4ecf0d98f28c43834c5f6cdb19f324f (diff)
downloadsamba-2236daa7ca715e6997756e70d5cb5097970ba437.tar.gz
pytest/password_lockout: Remove unused imports
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/dsdb/tests/python/password_lockout.py6
-rw-r--r--source4/dsdb/tests/python/password_lockout_base.py5
2 files changed, 2 insertions, 9 deletions
diff --git a/source4/dsdb/tests/python/password_lockout.py b/source4/dsdb/tests/python/password_lockout.py
index 1f7e1e1a487..40adfa21e5f 100755
--- a/source4/dsdb/tests/python/password_lockout.py
+++ b/source4/dsdb/tests/python/password_lockout.py
@@ -21,18 +21,16 @@ from samba.netcmd.main import samba_tool
import samba.getopt as options
from samba.auth import system_session
-from samba.credentials import Credentials, DONT_USE_KERBEROS, MUST_USE_KERBEROS
+from samba.credentials import DONT_USE_KERBEROS, MUST_USE_KERBEROS
from ldb import SCOPE_BASE, LdbError
from ldb import ERR_CONSTRAINT_VIOLATION
from ldb import ERR_INVALID_CREDENTIALS
from ldb import Message, MessageElement, Dn
from ldb import FLAG_MOD_REPLACE
-from samba import gensec, dsdb
+from samba import dsdb
from samba.samdb import SamDB
-import samba.tests
from samba.tests import delete_force
from samba.dcerpc import security, samr
-from samba.ndr import ndr_unpack
from samba.tests.pso import PasswordSettings
from samba.net import Net
from samba import NTSTATUSError, ntstatus
diff --git a/source4/dsdb/tests/python/password_lockout_base.py b/source4/dsdb/tests/python/password_lockout_base.py
index e4635bc7a86..d58970bc75c 100644
--- a/source4/dsdb/tests/python/password_lockout_base.py
+++ b/source4/dsdb/tests/python/password_lockout_base.py
@@ -1,16 +1,11 @@
-import samba
-
-from samba.auth import system_session
from samba.credentials import Credentials, DONT_USE_KERBEROS, MUST_USE_KERBEROS
from ldb import SCOPE_BASE, LdbError
-from ldb import ERR_CONSTRAINT_VIOLATION
from ldb import ERR_INVALID_CREDENTIALS
from ldb import SUCCESS as LDB_SUCCESS
from ldb import Message, MessageElement, Dn
from ldb import FLAG_MOD_REPLACE
from samba import gensec, dsdb
from samba.samdb import SamDB
-import samba.tests
from samba.tests import delete_force
from samba.dcerpc import security, samr
from samba.ndr import ndr_unpack