summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-05-24 19:36:30 +1200
committerAndrew Bartlett <abartlet@samba.org>2023-05-05 02:54:30 +0000
commitc07ac154627b10c177befc4e3fd8b3fec2702707 (patch)
tree13c447d065e9dc90e2fcca616c48af48f08c565d /python
parent58bf53c973dce8a1e492c70d072a3c1cc239ae7c (diff)
downloadsamba-c07ac154627b10c177befc4e3fd8b3fec2702707.tar.gz
tests/krb5: Remove test for OemChangePasswordUser2()
We don’t implement this anymore (since commit 0f53bfe7230c5e76f7ceb8baf98a9ef38a35356f). Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/krb5/kdc_base_test.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/python/samba/tests/krb5/kdc_base_test.py b/python/samba/tests/krb5/kdc_base_test.py
index bdb66d394c7..29fdde25da9 100644
--- a/python/samba/tests/krb5/kdc_base_test.py
+++ b/python/samba/tests/krb5/kdc_base_test.py
@@ -3006,7 +3006,7 @@ class KDCBaseTest(RawKerberosTest):
self.assertEqual(sid, str(token_sid))
- # Test the three SAMR password change methods implemented in Samba. If the
+ # Test the two SAMR password change methods implemented in Samba. If the
# user is protected, we should get an ACCOUNT_RESTRICTION error indicating
# that the password change is not allowed; otherwise we should get a
# WRONG_PASSWORD error.
@@ -3057,25 +3057,6 @@ class KDCBaseTest(RawKerberosTest):
else:
self.assertEqual(ntstatus.NT_STATUS_WRONG_PASSWORD, num)
- server = lsa.AsciiString()
- server.string = server_name
-
- account = lsa.AsciiString()
- account.string = username
-
- with self.assertRaises(NTSTATUSError) as err:
- conn.OemChangePasswordUser2(server=server,
- account=account,
- password=nt_password,
- hash=nt_verifier)
-
- num, _ = err.exception.args
- if num != ntstatus.NT_STATUS_NOT_IMPLEMENTED:
- if protected:
- self.assertEqual(ntstatus.NT_STATUS_ACCOUNT_RESTRICTION, num)
- else:
- self.assertEqual(ntstatus.NT_STATUS_WRONG_PASSWORD, num)
-
# Test SamLogon. Authentication should succeed for non-protected accounts,
# and fail for protected accounts.
def _test_samlogon(self, creds, logon_type, protected,