s4-test: use IPC$ instead of ADMIN$ for srvsvc NetShareGetInfo test
authorAndrew Tridgell <tridge@samba.org>
Thu, 11 Nov 2010 00:16:23 +0000 (11:16 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 11 Nov 2010 02:57:04 +0000 (02:57 +0000)
IPC$ is guaranteed to exist on servers that do RPC, whereas ADMIN$
isn't

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/torture/rpc/srvsvc.c

index 41370523262151bc0a60d70579d3e38ae47a5629..16f267326c938a21cb3d6bb612df9df9a31c64d7 100644 (file)
@@ -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,