From 502140a6ff1bae3a81f79c7753da8ca69b440d1c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 29 Dec 2011 13:51:55 +1100 Subject: [PATCH] s4-gensec: Pass the auth context in during gensec test --- source4/scripting/python/samba/tests/gensec.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source4/scripting/python/samba/tests/gensec.py b/source4/scripting/python/samba/tests/gensec.py index ddca0df9800..53e22923114 100644 --- a/source4/scripting/python/samba/tests/gensec.py +++ b/source4/scripting/python/samba/tests/gensec.py @@ -24,7 +24,7 @@ the functionality, that's already done in other tests. """ from samba.credentials import Credentials -from samba import gensec +from samba import gensec, auth import samba.tests class GensecTests(samba.tests.TestCase): @@ -56,7 +56,8 @@ class GensecTests(samba.tests.TestCase): self.gensec_client.want_feature(gensec.FEATURE_SEAL) self.gensec_client.start_mech_by_sasl_name("GSSAPI") - self.gensec_server = gensec.Security.start_server(self.settings) + self.gensec_server = gensec.Security.start_server(settings=self.settings, + auth_context=auth.AuthContext(lp_ctx=self.lp_ctx)) creds = Credentials() creds.guess(self.lp_ctx) creds.set_machine_account(self.lp_ctx) -- 2.34.1