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
^samba.tests.dcerpc.dnsserver.samba.tests.dcerpc.dnsserver.DnsserverTests.test_security_descriptor.*
^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dbcheck_dangling_multi_valued_clean
^samba4.blackbox.dbcheck-links.release-4-5-0-pre1.dangling_multi_valued_check_missing
-#
-# rap password tests don't function in the ad_dc_ntvfs environment
-#
-^samba.tests.auth_log_pass_change.samba.tests.auth_log_pass_change.AuthLogPassChangeTests.test_rap_change_password\(ad_dc_ntvfs\)
+
# We currently don't send referrals for LDAP modify of non-replicated attrs
^samba4.ldap.rodc.python\(rodc\).__main__.RodcTests.test_modify_nonreplicated.*
# NETLOGON is disabled in any non-DC environments