summaryrefslogtreecommitdiff
path: root/python/samba/tests/ntlm_auth.py
AgeCommit message (Collapse)AuthorFilesLines
2024-05-14tests/ntlm_auth: Do not set a client_passwordStefan Metzmacher1-1/+1
This fixes test_ntlmssp_gss_spnego_cached_creds Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2023-11-30python: tests: update all super calls to python 3 style in testsRob van der Linde1-1/+1
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> [abartlet@samba.org Some python2 style super() calls remain due to being an actual, even if reasonable, behaviour change]
2022-03-17ntlm_auth: Adapt --diagnostics mode to expect that the DC does not support ↵Andrew Bartlett1-0/+13
LANMAN by default Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2022-03-17selftest: Allow samba.tests.ntlm_auth to fail rather than error checking ↵Andrew Bartlett1-1/+5
--diagnostics This allows a knownfail entry to be written for this test. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2020-10-02python2 reduction: Merge remaining compat code into commonDavid Mulder1-1/+1
The remaining compat code (get_string, get_bytes, cmp) are useful helper routines which we should simply merge into common (especially since there is some duplication here). Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): David Mulder <dmulder@samba.org> Autobuild-Date(master): Fri Oct 2 14:49:36 UTC 2020 on sn-devel-184
2020-02-07pytests: heed assertEquals deprecation warning en-masseDouglas Bagnall1-12/+12
TestCase.assertEquals() is an alias for TestCase.assertEqual() and has been deprecated since Python 2.7. When we run our tests with in python developer mode (`PYTHONDEVMODE=1 make test`) we get 580 DeprecationWarnings about this. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org>
2020-01-06tests: Fix a typoVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2018-12-19tests/ntlm_auth: Port ntlm_auth_diagnostics tests to pythonSamuel Cabrero1-0/+9
Port ntlm_auth_diagnostics bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Wed Dec 19 16:21:32 CET 2018 on sn-devel-144
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero1-0/+24
with incorrect fixed password against winbind Port ntlm_auth bash script tests to python and remove bash test script Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero1-0/+17
with plaintext password against winbind but wrong sid Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero1-0/+25
with plaintext password against winbind Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero1-0/+15
with incorrect fixed password Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ntlm-server-1 ↵Samuel Cabrero1-0/+28
with fixed password Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth plaintext ↵Samuel Cabrero1-0/+13
authentication with failed require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth plaintext ↵Samuel Cabrero1-0/+14
authentication with require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero1-0/+9
gss-spnego-client and gss-spnego server against winbind with failed require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth against winbindd ↵Samuel Cabrero1-0/+8
with failed require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero1-0/+13
gss-spnego-client and gss-spnego server against winbind with require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth against winbindd ↵Samuel Cabrero1-0/+13
with require-membership-of Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Noel Power <noel.power@suse.com>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth ccached ↵Samuel Cabrero1-0/+21
credentials with NTLMSSP client and gss-spnego server Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero1-0/+12
gss-spnego-client and gss-spnego server against winbind Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero1-0/+18
gss-spnego-client and gss-spnego server Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth with NTLMSSP ↵Samuel Cabrero1-0/+18
client and gss-spnego server Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth against winbinddSamuel Cabrero1-0/+15
Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-12-19tests/ntlm_auth: Port ntlm_auth tests to python: ntlm_auth and ntlm_auth ↵Samuel Cabrero1-0/+53
with specified domain Port ntlm_auth bash script tests to python Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Noel Power <npower@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>