summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-12-29 13:51:55 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-12-29 14:01:55 +1100
commit502140a6ff1bae3a81f79c7753da8ca69b440d1c (patch)
tree437adaed7b122e5b3cb7fa55f8dee7b7be438709 /source4/scripting/python
parent2ee67e37c239f303351eb80917d9c68334ce26ac (diff)
downloadsamba-502140a6ff1bae3a81f79c7753da8ca69b440d1c.tar.gz
samba-502140a6ff1bae3a81f79c7753da8ca69b440d1c.tar.bz2
samba-502140a6ff1bae3a81f79c7753da8ca69b440d1c.zip
s4-gensec: Pass the auth context in during gensec test
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/tests/gensec.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/tests/gensec.py b/source4/scripting/python/samba/tests/gensec.py
index ddca0df980..53e2292311 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)