summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2022-02-18 12:55:57 +1300
committerAndrew Bartlett <abartlet@samba.org>2022-03-17 01:57:38 +0000
commitfaea2f8a6b54714c50e0a5b15bd1775d67944e06 (patch)
treecfa64ca279a29a7a8bb137cd0eb978a9b3bbd1be /python
parentd0b922bd51d0c75ac9d850ceac689707cd24cf92 (diff)
downloadsamba-faea2f8a6b54714c50e0a5b15bd1775d67944e06.tar.gz
selftest: Remove auth_log test for RAP password change
RAP is SMB1, the password change routine requires LM hashes and so everything here is going away or has now gone, so remove the test. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/auth_log_pass_change.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/python/samba/tests/auth_log_pass_change.py b/python/samba/tests/auth_log_pass_change.py
index f19512deaf8..cb4c42167d2 100644
--- a/python/samba/tests/auth_log_pass_change.py
+++ b/python/samba/tests/auth_log_pass_change.py
@@ -200,35 +200,6 @@ class AuthLogPassChangeTests(samba.tests.auth_log_base.AuthLogTestBase):
self.assertTrue(self.waitForMessages(isLastExpectedMessage),
"Did not receive the expected message")
- # net rap password changes are broken, but they trigger enough of the
- # server side behaviour to exercise the code paths of interest.
- # if we used the real password it would be too long and does not hash
- # correctly, so we just check it triggers the wrong password path.
- def test_rap_change_password(self):
- def isLastExpectedMessage(msg):
- return ((msg["type"] == "Authentication") and
- (msg["Authentication"]["serviceDescription"] ==
- "SAMR Password Change") and
- (msg["Authentication"]["status"] ==
- "NT_STATUS_WRONG_PASSWORD") and
- (msg["Authentication"]["authDescription"] ==
- "OemChangePasswordUser2") and
- (msg["Authentication"]["eventId"] ==
- EVT_ID_UNSUCCESSFUL_LOGON) and
- (msg["Authentication"]["logonType"] ==
- EVT_LOGON_NETWORK))
-
- username = os.environ["USERNAME"]
- server = os.environ["SERVER"]
- password = os.environ["PASSWORD"]
- server_param = "--server=%s" % server
- creds = "-U%s%%%s" % (username, password)
- call(["bin/net", "rap", server_param,
- "password", USER_NAME, "notMyPassword", "notGoingToBeMyPassword",
- server, creds, "--option=client ipc max protocol=nt1"])
- self.assertTrue(self.waitForMessages(isLastExpectedMessage),
- "Did not receive the expected message")
-
def test_ldap_change_password(self):
def isLastExpectedMessage(msg):
return ((msg["type"] == "Authentication") and