summaryrefslogtreecommitdiff
path: root/source4/torture/ldap/cldap.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-07-12 09:40:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:20:12 -0500
commite87f589f00a24b312f9e987ebcb5d998360800b8 (patch)
treef98656510facd84f6a42f2f3b4fb7ca2c2ac09a3 /source4/torture/ldap/cldap.c
parentbab3e5d6ce4546988f3807828c6a1533c2dd991e (diff)
downloadsamba-e87f589f00a24b312f9e987ebcb5d998360800b8.tar.gz
samba-e87f589f00a24b312f9e987ebcb5d998360800b8.tar.bz2
samba-e87f589f00a24b312f9e987ebcb5d998360800b8.zip
r8368: the type filed depends on the user being present or not
call ndr_print for each call metze (This used to be commit 0a07e4ef8d869d35ceb0761495e367077f2361ba)
Diffstat (limited to 'source4/torture/ldap/cldap.c')
-rw-r--r--source4/torture/ldap/cldap.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/source4/torture/ldap/cldap.c b/source4/torture/ldap/cldap.c
index c0a073c2f8..d6c56dbd34 100644
--- a/source4/torture/ldap/cldap.c
+++ b/source4/torture/ldap/cldap.c
@@ -32,8 +32,13 @@
__location__, nt_errstr(status), nt_errstr(correct)); \
ret = False; \
goto done; \
- }} while (0)
-
+ } \
+ if (DEBUGLVL(10)) { \
+ NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon, \
+ search.in.version & 0xF, \
+ &search.out.netlogon); \
+ } \
+} while (0)
/*
test netlogon operations
@@ -72,11 +77,6 @@ static BOOL test_cldap_netlogon(TALLOC_CTX *mem_ctx, const char *dest)
printf("Trying netlogon level %d\n", i);
status = cldap_netlogon(cldap, mem_ctx, &search);
CHECK_STATUS(status, NT_STATUS_OK);
- if (DEBUGLVL(10)) {
- NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon,
- search.in.version & 0xF,
- &search.out.netlogon);
- }
}
printf("Scanning for netlogon level bits\n");
@@ -85,11 +85,6 @@ static BOOL test_cldap_netlogon(TALLOC_CTX *mem_ctx, const char *dest)
printf("Trying netlogon level 0x%x\n", i);
status = cldap_netlogon(cldap, mem_ctx, &search);
CHECK_STATUS(status, NT_STATUS_OK);
- if (DEBUGLVL(10)) {
- NDR_PRINT_UNION_DEBUG(nbt_cldap_netlogon,
- search.in.version & 0xF,
- &search.out.netlogon);
- }
}
search.in.version = 6;