X-Git-Url: http://git.samba.org/samba.git/?p=amitay%2Fsamba.git;a=blobdiff_plain;f=python%2Fsamba%2Ftests%2Fauth_log_samlogon.py;h=8abdc8dac0b29c23e35241454e8c415901b95698;hp=00e105c991a5d362e7983a23b492f4837e19b430;hb=b7baf96bd7248b1d34416e3ae86f4613c5ed0934;hpb=cb23a0345f1ef4297f6643c25ebe955b9aaee54c diff --git a/python/samba/tests/auth_log_samlogon.py b/python/samba/tests/auth_log_samlogon.py index 00e105c991a..8abdc8dac0b 100644 --- a/python/samba/tests/auth_log_samlogon.py +++ b/python/samba/tests/auth_log_samlogon.py @@ -36,6 +36,7 @@ from samba.tests import delete_force from samba.dsdb import UF_WORKSTATION_TRUST_ACCOUNT, UF_PASSWD_NOTREQD from samba.dcerpc.misc import SEC_CHAN_WKSTA from samba.compat import text_type +from samba.dcerpc.windows_event_ids import EVT_ID_SUCCESSFUL_LOGON class AuthLogTestsSamLogon(samba.tests.auth_log_base.AuthLogTestBase): @@ -70,7 +71,8 @@ class AuthLogTestsSamLogon(samba.tests.auth_log_base.AuthLogTestBase): msg["type"] == "Authentication" and msg["Authentication"]["serviceDescription"] == "SamLogon" and msg["Authentication"]["authDescription"] == "network" and - msg["Authentication"]["passwordType"] == "NTLMv2") + msg["Authentication"]["passwordType"] == "NTLMv2" and + msg["Authentication"]["eventId"] == EVT_ID_SUCCESSFUL_LOGON) if binding: binding = "[schannel,%s]" % binding