mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
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>
This commit is contained in:
parent
58bf53c973
commit
c07ac15462
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user