diff options
author | Günther Deschner <gd@samba.org> | 2006-01-26 12:04:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:06:16 -0500 |
commit | abfc68fdc386ec415e7f445ad7d52c16492a4687 (patch) | |
tree | 5d0343389701ee70d3a438ab86c6a211300668da | |
parent | 69981e3341251250f0fa3ed61af184b9c1e8a78a (diff) | |
download | samba-abfc68fdc386ec415e7f445ad7d52c16492a4687.tar.gz samba-abfc68fdc386ec415e7f445ad7d52c16492a4687.tar.bz2 samba-abfc68fdc386ec415e7f445ad7d52c16492a4687.zip |
r13162: Allow to set the flags for a ds_enum_domain_trusts query in rpcclient.
Guenther
(This used to be commit e52b77b0a4e29387d2333a340868e839683df729)
-rw-r--r-- | source3/rpcclient/cmd_ds.c | 6 |
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 ); |