From 1dbe7430c748d127302f36081653e4b8e35092e1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 16 May 2005 11:16:48 +0000 Subject: r6816: - fixed debug display of ndr netlogon union - send a username when scanning to make structure elements clearer (This used to be commit 7d19eb9433b615fdf789cb07aeb331df92b05abd) --- source4/torture/ldap/cldap.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source4/torture/ldap/cldap.c b/source4/torture/ldap/cldap.c index 2978419a2a..0a6af18b96 100644 --- a/source4/torture/ldap/cldap.c +++ b/source4/torture/ldap/cldap.c @@ -62,6 +62,7 @@ static BOOL test_cldap_netlogon(TALLOC_CTX *mem_ctx, const char *dest) n1 = search.out.netlogon; + search.in.user = "Administrator"; search.in.realm = n1.logon4.dns_domain; search.in.host = "__cldap_torture__"; @@ -72,7 +73,8 @@ static BOOL test_cldap_netlogon(TALLOC_CTX *mem_ctx, const char *dest) status = cldap_netlogon(cldap, mem_ctx, &search); CHECK_STATUS(status, NT_STATUS_OK); if (DEBUGLVL(10)) { - NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, i & 0xF, + NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, + search.in.version & 0xF, &search.out.netlogon); } } @@ -84,7 +86,8 @@ static BOOL test_cldap_netlogon(TALLOC_CTX *mem_ctx, const char *dest) status = cldap_netlogon(cldap, mem_ctx, &search); CHECK_STATUS(status, NT_STATUS_OK); if (DEBUGLVL(10)) { - NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, i & 0xF, + NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, + search.in.version & 0xF, &search.out.netlogon); } } -- cgit