diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-12-22 17:05:29 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-04 18:33:06 +0100 |
commit | 55db69198b76daaaba4a1e3d5c7195e4056ebb2c (patch) | |
tree | f0c47ae48dd732e6ef1b727ba15b2c3fd2b0215a /source4/torture | |
parent | 6b3404ad95998351127a5d1b181a2825827c7bd5 (diff) | |
download | samba-55db69198b76daaaba4a1e3d5c7195e4056ebb2c.tar.gz samba-55db69198b76daaaba4a1e3d5c7195e4056ebb2c.tar.bz2 samba-55db69198b76daaaba4a1e3d5c7195e4056ebb2c.zip |
s4:torture/nbt/dgram.c - NBT samlogon requests don't return the PDC name as UNC path
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/nbt/dgram.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/nbt/dgram.c b/source4/torture/nbt/dgram.c index d25724e176..9e0027cb70 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); |