summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-11 11:16:23 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-11 02:57:04 +0000
commite908c263916c1e18468054d8a0416e5a1425c25d (patch)
tree3d9dc4d727fe37fa3b9b22b7704423d44816406f
parent81c9b98ecd6b0b4ec412ea7a0963002dc17f4f66 (diff)
downloadsamba-e908c263916c1e18468054d8a0416e5a1425c25d.tar.gz
samba-e908c263916c1e18468054d8a0416e5a1425c25d.tar.bz2
samba-e908c263916c1e18468054d8a0416e5a1425c25d.zip
s4-test: use IPC$ instead of ADMIN$ for srvsvc NetShareGetInfo test
IPC$ is guaranteed to exist on servers that do RPC, whereas ADMIN$ isn't Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/torture/rpc/srvsvc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c
index 4137052326..16f267326c 100644
--- a/source4/torture/rpc/srvsvc.c
+++ b/source4/torture/rpc/srvsvc.c
@@ -306,7 +306,7 @@ static bool test_NetConnEnum(struct torture_context *tctx,
ZERO_STRUCT(info_ctr);
r.in.server_unc = talloc_asprintf(tctx,"\\\\%s",dcerpc_server_name(p));
- r.in.path = talloc_asprintf(tctx,"%s","ADMIN$");
+ r.in.path = talloc_asprintf(tctx,"%s","IPC$");
r.in.info_ctr = &info_ctr;
r.in.max_buffer = (uint32_t)-1;
r.in.resume_handle = NULL;
@@ -534,13 +534,13 @@ static bool test_NetShareGetInfo(struct torture_context *tctx,
static bool test_NetShareGetInfoAdminFull(struct torture_context *tctx,
struct dcerpc_pipe *p)
{
- return test_NetShareGetInfo(tctx, p, "ADMIN$", true);
+ return test_NetShareGetInfo(tctx, p, "IPC$", true);
}
static bool test_NetShareGetInfoAdminAnon(struct torture_context *tctx,
struct dcerpc_pipe *p)
{
- return test_NetShareGetInfo(tctx, p, "ADMIN$", false);
+ return test_NetShareGetInfo(tctx, p, "IPC$", false);
}
static bool test_NetShareAddSetDel(struct torture_context *tctx,