summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-16 11:16:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:47 -0500
commit1dbe7430c748d127302f36081653e4b8e35092e1 (patch)
treef7f5fda298dcf76f9dbf7cc0452a0714f90f02d7
parentd43e0836dd1dc6f60104a93ff3e2c333e3f79b48 (diff)
downloadsamba-1dbe7430c748d127302f36081653e4b8e35092e1.tar.gz
samba-1dbe7430c748d127302f36081653e4b8e35092e1.tar.bz2
samba-1dbe7430c748d127302f36081653e4b8e35092e1.zip
r6816: - fixed debug display of ndr netlogon union
- send a username when scanning to make structure elements clearer (This used to be commit 7d19eb9433b615fdf789cb07aeb331df92b05abd)
-rw-r--r--source4/torture/ldap/cldap.c7
1 files 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);
}
}