]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Remove test for OemChangePasswordUser2()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 24 May 2022 07:36:30 +0000 (19:36 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 5 May 2023 02:54:30 +0000 (02:54 +0000)
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>
python/samba/tests/krb5/kdc_base_test.py

index bdb66d394c70753cf65c5041bae3a4e95f9e412f..29fdde25da9a833066d56ac6006e880990bd8d41 100644 (file)
@@ -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,