summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/rpcclient/cmd_ds.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_ds.c b/source3/rpcclient/cmd_ds.c
index 951d18a710..478b9f89e7 100644
--- a/source3/rpcclient/cmd_ds.c
+++ b/source3/rpcclient/cmd_ds.c
@@ -52,11 +52,15 @@ static NTSTATUS cmd_ds_enum_domain_trusts(struct rpc_pipe_client *cli,
const char **argv)
{
NTSTATUS result;
- uint32 flags = 0x1;
+ uint32 flags = DS_DOMAIN_IN_FOREST;
struct ds_domain_trust *trusts = NULL;
unsigned int num_domains = 0;
int i;
+ if (argc > 1) {
+ flags = atoi(argv[1]);
+ }
+
result = rpccli_ds_enum_domain_trusts( cli, mem_ctx, cli->cli->desthost, flags,
&trusts, &num_domains );