1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

tests/auth_log: adjust expected authDescription for test_smb_bad_user

With NO_SUCH_USER we don't know if any pre-authentication was requested,
so with the new Heimdal code we now used use "AS-REQ" instead of
assuming ENC-TS Pre-authentication.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Stefan Metzmacher 2022-01-19 17:25:00 +01:00 committed by Joseph Sutton
parent 5a05066baf
commit 52ccce259d

View File

@ -786,7 +786,7 @@ class AuthLogTests(samba.tests.auth_log_base.AuthLogTestBase):
(msg["Authentication"]["status"] == (msg["Authentication"]["status"] ==
"NT_STATUS_NO_SUCH_USER") and "NT_STATUS_NO_SUCH_USER") and
(msg["Authentication"]["authDescription"] == (msg["Authentication"]["authDescription"] ==
"ENC-TS Pre-authentication") and "AS-REQ") and
(msg["Authentication"]["eventId"] == (msg["Authentication"]["eventId"] ==
EVT_ID_UNSUCCESSFUL_LOGON) and EVT_ID_UNSUCCESSFUL_LOGON) and
(msg["Authentication"]["logonType"] == (msg["Authentication"]["logonType"] ==