From 61b0397de2031813bdcf35a742eeba2dc9c5f9b9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 20 Nov 2023 13:02:21 +1300 Subject: [PATCH] python/tests: Import samba.gensec, not gensec This allows this function to be used by gensec.py (a test) without collision. Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- python/samba/tests/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index 5ba18c9fdcb..9981e1390a2 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -26,13 +26,13 @@ import samba from samba import param from samba import credentials from samba.credentials import Credentials -from samba import gensec import subprocess import sys import unittest import re from enum import IntEnum, unique import samba.auth +import samba.gensec import samba.dcerpc.base from random import randint from random import SystemRandom @@ -256,7 +256,7 @@ class TestCase(unittest.TestCase): c.set_realm(template.get_realm()) c.set_workstation(template.get_workstation()) c.set_gensec_features(c.get_gensec_features() - | gensec.FEATURE_SEAL) + | samba.gensec.FEATURE_SEAL) c.set_kerberos_state(kerberos_state) if simple_bind_dn: c.set_bind_dn(simple_bind_dn)