r6816: - fixed debug display of ndr netlogon union
authorAndrew Tridgell <tridge@samba.org>
Mon, 16 May 2005 11:16:48 +0000 (11:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:47 +0000 (13:16 -0500)
- send a username when scanning to make structure elements clearer

source/torture/ldap/cldap.c

index 2978419a2ae1260c0458e35b5f893a052f54e790..0a6af18b962d61412808b94aa95e120777b82ee8 100644 (file)
@@ -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);
                }
        }