s4:torture/nbt/dgram.c - NBT samlogon requests don't return the PDC name as UNC path
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 22 Dec 2011 16:05:29 +0000 (17:05 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 4 Jan 2012 17:33:06 +0000 (18:33 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/torture/nbt/dgram.c

index d25724e17633f4f933755beeb2f80b3b34e18402..9e0027cb703d4e7175dfe745742ec1f2a2d95c17 100644 (file)
@@ -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);