- add 'print' to the DCERPC binding strings
[samba.git] / source4 / torture / rpc / dfs.c
index 889abbdc78f574a598d0eb2be870339d75d444a0..940a42a9474a9a72744f1a30f6e9d7048da986fb 100644 (file)
@@ -36,8 +36,6 @@ static BOOL test_Exist(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
                return False;
        }
 
-       NDR_PRINT_BOTH_DEBUG(dfs_Exist, &r);
-
        return True;
 }
 
@@ -60,8 +58,6 @@ static BOOL test_InfoLevel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, uint16 le
                return False;
        }
 
-       NDR_PRINT_BOTH_DEBUG(dfs_GetInfo, &r);
-
        return True;
 }
 
@@ -106,8 +102,6 @@ static BOOL test_EnumLevel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, uint16 le
                return False;
        }
 
-       NDR_PRINT_BOTH_DEBUG(dfs_Enum, &r);
-
        if (level == 1 && r.out.total) {
                int i;
                for (i=0;i<*r.out.total;i++) {
@@ -178,11 +172,14 @@ BOOL torture_rpc_dfs(int dummy)
 
        mem_ctx = talloc_init("torture_rpc_dfs");
 
-       status = torture_rpc_connection(&p, "netdfs");
+       status = torture_rpc_connection(&p, 
+                                       DCERPC_NETDFS_NAME,
+                                       DCERPC_NETDFS_UUID,
+                                       DCERPC_NETDFS_VERSION);
        if (!NT_STATUS_IS_OK(status)) {
                return False;
        }
-       
+
        if (!test_Exist(p, mem_ctx)) {
                ret = False;
        }
@@ -197,6 +194,8 @@ BOOL torture_rpc_dfs(int dummy)
                ret = False;
        }
 
+       talloc_destroy(mem_ctx);
+
         torture_rpc_close(p);
 
        return ret;