mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Remove last caller of rpccli_ds_enum_domain_trusts().
I added an alias in rpcclient's netlogon command table. Guenther (This used to be commit 1a900e08e92484407d69661517f08e675a3c352a)
This commit is contained in:
parent
e629f50a51
commit
e7b2be804b
@ -57,31 +57,6 @@ static WERROR cmd_ds_dsrole_getprimarydominfo(struct rpc_pipe_client *cli,
|
||||
return werr;
|
||||
}
|
||||
|
||||
static NTSTATUS cmd_ds_enum_domain_trusts(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx, int argc,
|
||||
const char **argv)
|
||||
{
|
||||
NTSTATUS result;
|
||||
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 );
|
||||
|
||||
printf( "%d domains returned\n", num_domains );
|
||||
|
||||
for (i=0; i<num_domains; i++ )
|
||||
printf("%s (%s)\n", trusts[i].dns_domain, trusts[i].netbios_domain);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/* List of commands exported by this module */
|
||||
|
||||
struct cmd_set ds_commands[] = {
|
||||
@ -89,7 +64,6 @@ struct cmd_set ds_commands[] = {
|
||||
{ "LSARPC-DS" },
|
||||
|
||||
{ "dsroledominfo", RPC_RTYPE_WERROR, NULL, cmd_ds_dsrole_getprimarydominfo, PI_DSSETUP, NULL, "Get Primary Domain Information", "" },
|
||||
{ "dsenumdomtrusts", RPC_RTYPE_NTSTATUS, cmd_ds_enum_domain_trusts, NULL, PI_NETLOGON, NULL, "Enumerate all trusted domains in an AD forest", "" },
|
||||
|
||||
{ NULL }
|
||||
};
|
||||
|
@ -761,6 +761,7 @@ struct cmd_set netlogon_commands[] = {
|
||||
{ "change_trust_pw", RPC_RTYPE_NTSTATUS, cmd_netlogon_change_trust_pw, NULL, PI_NETLOGON, NULL, "Change Trust Account Password", "" },
|
||||
{ "gettrustrid", RPC_RTYPE_WERROR, NULL, cmd_netlogon_gettrustrid, PI_NETLOGON, NULL, "Get trust rid", "" },
|
||||
{ "dsr_enumtrustdom", RPC_RTYPE_WERROR, NULL, cmd_netlogon_dsr_enumtrustdom, PI_NETLOGON, NULL, "Enumerate trusted domains", "" },
|
||||
{ "dsenumdomtrusts", RPC_RTYPE_WERROR, NULL, cmd_netlogon_dsr_enumtrustdom, PI_NETLOGON, NULL, "Enumerate all trusted domains in an AD forest", "" },
|
||||
{ "deregisterdnsrecords", RPC_RTYPE_WERROR, NULL, cmd_netlogon_deregisterdnsrecords, PI_NETLOGON, NULL, "Deregister DNS records", "" },
|
||||
|
||||
{ NULL }
|
||||
|
Loading…
x
Reference in New Issue
Block a user