summaryrefslogtreecommitdiff
path: root/source4/auth/gensec/tests
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-02 18:50:59 +1000
committerAndrew Tridgell <tridge@samba.org>2009-10-02 18:50:59 +1000
commit5a5c30cb38c7e08fbe1abbc98496142ac022e7f8 (patch)
tree4894e72ee94ad8fd0be8bd3fb5d621c2af67fa7d /source4/auth/gensec/tests
parent084407fe2072a66ec753aa4dcceaa5a9622fce9e (diff)
downloadsamba-5a5c30cb38c7e08fbe1abbc98496142ac022e7f8.tar.gz
samba-5a5c30cb38c7e08fbe1abbc98496142ac022e7f8.tar.bz2
samba-5a5c30cb38c7e08fbe1abbc98496142ac022e7f8.zip
s4-pygensec: a bit closer to working
I'll need help from Andrew on how to get gensec to initialise it's ops element
Diffstat (limited to 'source4/auth/gensec/tests')
-rw-r--r--source4/auth/gensec/tests/bindings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/auth/gensec/tests/bindings.py b/source4/auth/gensec/tests/bindings.py
index 95d7833e4a..f88fa82ae1 100644
--- a/source4/auth/gensec/tests/bindings.py
+++ b/source4/auth/gensec/tests/bindings.py
@@ -25,11 +25,15 @@ the functionality, that's already done in other tests.
import unittest
from samba import gensec
+from samba.tests import cmdline_loadparm
class CredentialsTests(unittest.TestCase):
def setUp(self):
- self.gensec = gensec.Security.start_client()
+ settings = {}
+ settings["target_hostname"] = "localhost"
+ settings["lp_ctx"] = cmdline_loadparm
+ self.gensec = gensec.Security.start_client(settings)
def test_info(self):
self.assertEquals(None, self.gensec.session_info())