summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-02 04:05:05 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-02 04:05:05 +0000
commitf9419900d3804c62d17bfd6faf933ecc38197995 (patch)
treedecb7e9717471313ce8656a7bba6c812e2193dfe /source4/torture
parentd65f0095c9acc11e9512c546a99af720d7dd5036 (diff)
downloadsamba-f9419900d3804c62d17bfd6faf933ecc38197995.tar.gz
samba-f9419900d3804c62d17bfd6faf933ecc38197995.tar.bz2
samba-f9419900d3804c62d17bfd6faf933ecc38197995.zip
initial netlogon database sync partly works - needs some IDL tweaks
(This used to be commit 75ea276c147e2b4b0617eb0b77276d5fb5da2043)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/netlogon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index dac9f8c4ea..a99ee642f5 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -99,7 +99,7 @@ static BOOL test_SetupCredentials(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
a.in.server_name = NULL;
a.in.username = talloc_asprintf(mem_ctx, "%s$", lp_netbios_name());
- a.in.secure_challenge_type = 2;
+ a.in.secure_challenge_type = SEC_CHAN_BDC;
a.in.computer_name = lp_netbios_name();
printf("Testing ServerAuthenticate\n");
@@ -194,7 +194,7 @@ static BOOL test_SetPassword(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
r.in.server_name = talloc_asprintf(mem_ctx, "\\\\%s", dcerpc_server_name(p));
r.in.username = talloc_asprintf(mem_ctx, "%s$", lp_netbios_name());
- r.in.secure_challenge_type = 2;
+ r.in.secure_challenge_type = SEC_CHAN_BDC;
r.in.computer_name = lp_netbios_name();
password = generate_random_str(8);
@@ -259,7 +259,7 @@ static BOOL test_DatabaseSync(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
r.in.logonserver = talloc_asprintf(mem_ctx, "\\\\%s", dcerpc_server_name(p));
r.in.computername = lp_netbios_name();
r.in.database_id = 1;
- r.in.sync_context = 1;
+ r.in.sync_context = 0;
r.in.preferredmaximumlength = (uint32)-1;
printf("Testing DatabaseSync\n");