1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

wbinfo: support for local, workstation and routed trust types

Prepare wbinfo for additional trust types and trust routing.

This also modifies the output line for a "None" trust type by skipping
the transitivity and direction -- that just doesn't make sense without a
trust.

Signed-off-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Ralph Boehme 2017-12-13 16:02:22 +01:00 committed by Karolin Seeger
parent ec85579d87
commit 05558ddd7e

View File

@ -536,7 +536,26 @@ static bool wbinfo_list_domains(bool list_all_domains, bool verbose)
switch(domain_list[i].trust_type) {
case WBC_DOMINFO_TRUSTTYPE_NONE:
d_printf("None ");
if (domain_list[i].trust_routing != NULL) {
d_printf("%s\n", domain_list[i].trust_routing);
} else {
d_printf("None\n");
}
continue;
case WBC_DOMINFO_TRUSTTYPE_LOCAL:
d_printf("Local\n");
continue;
case WBC_DOMINFO_TRUSTTYPE_RWDC:
d_printf("RWDC\n");
continue;
case WBC_DOMINFO_TRUSTTYPE_RODC:
d_printf("RODC\n");
continue;
case WBC_DOMINFO_TRUSTTYPE_PDC:
d_printf("PDC\n");
continue;
case WBC_DOMINFO_TRUSTTYPE_WKSTA:
d_printf("Workstation ");
break;
case WBC_DOMINFO_TRUSTTYPE_FOREST:
d_printf("Forest ");