class NTLMAuthHelpersTests(NTLMAuthTestCase):
+ def setUp(self):
+ super(NTLMAuthHelpersTests, self).setUp()
+ self.username = os.environ["DC_USERNAME"]
+ self.password = os.environ["DC_PASSWORD"]
+ self.domain = os.environ["DOMAIN"]
+
def test_specified_domain(self):
""" ntlm_auth with specified domain """
server_domain=domain,
server_use_winbind=False)
self.assertTrue(ret)
+
+ def test_agaist_winbind(self):
+ """ ntlm_auth against winbindd """
+
+ ret = self.run_helper(client_username=self.username,
+ client_password=self.password,
+ client_domain=self.domain,
+ server_use_winbind=True)
+ self.assertTrue(ret)
}
# This should work even with NTLMv2
-testit "ntlm_auth against winbindd" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $NTLM_AUTH --client-username=$USERNAME --client-domain=$DOMAIN --client-password=$PASSWORD --server-use-winbindd $ADDARGS || failed=`expr $failed + 1`
testit "ntlm_auth with NTLMSSP client and gss-spnego server" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $NTLM_AUTH $ADDARGS --client-domain=fOo --server-domain=fOo --client-helper=ntlmssp-client-1 --server-helper=gss-spnego || failed=`expr $failed + 1`
testit "ntlm_auth with NTLMSSP gss-spnego-client and gss-spnego server" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $NTLM_AUTH $ADDARGS --client-domain=fOo --server-domain=fOo --client-helper=gss-spnego-client --server-helper=gss-spnego || failed=`expr $failed + 1`
testit "ntlm_auth with NTLMSSP gss-spnego-client and gss-spnego server against winbind" $PYTHON $SRC3DIR/torture/test_ntlm_auth.py $NTLM_AUTH --client-username=$USERNAME --client-domain=$DOMAIN --client-password=$PASSWORD --server-use-winbindd --client-helper=gss-spnego-client --server-helper=gss-spnego $ADDARGS || failed=`expr $failed + 1`