2 Unix SMB/CIFS implementation.
4 Copyright (C) Guenther Deschner 2007
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 /****************************************************************
23 ****************************************************************/
25 void display_ds_domain_controller_info(TALLOC_CTX
*mem_ctx
,
26 const struct DS_DOMAIN_CONTROLLER_INFO
*info
)
28 d_printf("domain_controller_name: %s\n",
29 info
->domain_controller_name
);
30 d_printf("domain_controller_address: %s\n",
31 info
->domain_controller_address
);
32 d_printf("domain_controller_address_type: %d\n",
33 info
->domain_controller_address_type
);
34 d_printf("domain_guid: %s\n",
35 GUID_string(mem_ctx
, info
->domain_guid
));
36 d_printf("domain_name: %s\n",
38 d_printf("dns_forest_name: %s\n",
39 info
->dns_forest_name
);
41 d_printf("flags: 0x%08x\n"
43 "\tIs a GC of the forest: %s\n"
44 "\tIs an LDAP server: %s\n"
46 "\tIs running a KDC: %s\n"
47 "\tIs running time services: %s\n"
48 "\tIs the closest DC: %s\n"
50 "\tHas a hardware clock: %s\n"
51 "\tIs a non-domain NC serviced by LDAP server: %s\n"
52 "\tDomainControllerName is a DNS name: %s\n"
53 "\tDomainName is a DNS name: %s\n"
54 "\tDnsForestName is a DNS name: %s\n",
56 (info
->flags
& ADS_PDC
) ? "yes" : "no",
57 (info
->flags
& ADS_GC
) ? "yes" : "no",
58 (info
->flags
& ADS_LDAP
) ? "yes" : "no",
59 (info
->flags
& ADS_DS
) ? "yes" : "no",
60 (info
->flags
& ADS_KDC
) ? "yes" : "no",
61 (info
->flags
& ADS_TIMESERV
) ? "yes" : "no",
62 (info
->flags
& ADS_CLOSEST
) ? "yes" : "no",
63 (info
->flags
& ADS_WRITABLE
) ? "yes" : "no",
64 (info
->flags
& ADS_GOOD_TIMESERV
) ? "yes" : "no",
65 (info
->flags
& ADS_NDNC
) ? "yes" : "no",
66 (info
->flags
& ADS_DNS_CONTROLLER
) ? "yes":"no",
67 (info
->flags
& ADS_DNS_DOMAIN
) ? "yes":"no",
68 (info
->flags
& ADS_DNS_FOREST
) ? "yes":"no");
70 d_printf("dc_site_name: %s\n", info
->dc_site_name
);
71 d_printf("client_site_name: %s\n", info
->client_site_name
);