From abfc68fdc386ec415e7f445ad7d52c16492a4687 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 26 Jan 2006 12:04:43 +0000 Subject: r13162: Allow to set the flags for a ds_enum_domain_trusts query in rpcclient. Guenther (This used to be commit e52b77b0a4e29387d2333a340868e839683df729) --- source3/rpcclient/cmd_ds.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/rpcclient') 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 ); -- cgit