From 55db69198b76daaaba4a1e3d5c7195e4056ebb2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Thu, 22 Dec 2011 17:05:29 +0100 Subject: [PATCH] s4:torture/nbt/dgram.c - NBT samlogon requests don't return the PDC name as UNC path Signed-off-by: Stefan Metzmacher --- source4/torture/nbt/dgram.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/torture/nbt/dgram.c b/source4/torture/nbt/dgram.c index d25724e1763..9e0027cb703 100644 --- a/source4/torture/nbt/dgram.c +++ b/source4/torture/nbt/dgram.c @@ -246,8 +246,13 @@ static bool nbt_test_netlogon2(struct torture_context *tctx) map_netlogon_samlogon_response(&response->data.samlogon); torture_assert_int_equal(tctx, response->data.samlogon.data.nt5_ex.command, LOGON_SAM_LOGON_RESPONSE_EX, "Got incorrect netlogon response command"); + torture_assert_int_equal(tctx, response->data.samlogon.data.nt5_ex.nt_version, NETLOGON_NT_VERSION_5EX_WITH_IP|NETLOGON_NT_VERSION_5EX|NETLOGON_NT_VERSION_1, "Got incorrect netlogon response command"); + torture_assert(tctx, + strstr(response->data.samlogon.data.nt5_ex.pdc_name, "\\\\") == NULL, + "PDC name should not be in UNC form"); + /* setup (another) temporary mailslot listener for replies */ dgmslot = dgram_mailslot_temp(dgmsock, NBT_MAILSLOT_GETDC, netlogon_handler, NULL); -- 2.11.4.GIT