s4-gensec: Pass the auth context in during gensec test
authorAndrew Bartlett <abartlet@samba.org>
Thu, 29 Dec 2011 02:51:55 +0000 (13:51 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 Dec 2011 03:01:55 +0000 (14:01 +1100)
source4/scripting/python/samba/tests/gensec.py

index ddca0df9800fb8f23c59cb4059e832619d4dfaa9..53e2292311499735aaba911373cdcd84b8f90c02 100644 (file)
@@ -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)