mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r13162: Allow to set the flags for a ds_enum_domain_trusts query in rpcclient.
Guenther
This commit is contained in:
parent
c2c004a620
commit
e52b77b0a4
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user