summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/samr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index cf354d469e..cf44142d2d 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -2003,6 +2003,11 @@ static BOOL test_EnumDomainUsers_async(struct dcerpc_pipe *p, TALLOC_CTX *mem_ct
#define ASYNC_COUNT 100
struct rpc_request *req[ASYNC_COUNT];
+ if (lp_parm_int(-1, "torture", "dangerous") != 1) {
+ printf("samr async test disabled - enable dangerous tests to use\n");
+ return True;
+ }
+
printf("Testing EnumDomainUsers_async\n");
r.in.handle = handle;