summaryrefslogtreecommitdiffstats
path: root/source/utils/net_ads.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-04 01:30:37 +0200
committerGünther Deschner <gd@samba.org>2008-06-04 01:35:43 +0200
commit420390ba0ef6b45f18a8fd37974b1fbee0bd1502 (patch)
treecbb00a987d82de28ebed2b040df55e84ea759ed4 /source/utils/net_ads.c
parent7f8b0b4d151fa4d07758b6fd7b47b0b7c07dda17 (diff)
downloadsamba-420390ba0ef6b45f18a8fd37974b1fbee0bd1502.tar.gz
samba-420390ba0ef6b45f18a8fd37974b1fbee0bd1502.tar.xz
samba-420390ba0ef6b45f18a8fd37974b1fbee0bd1502.zip
net: print NBT_SERVER_X_SECRET_DOMAIN_6 flags in "net ads lookup".
Guenther
Diffstat (limited to 'source/utils/net_ads.c')
-rw-r--r--source/utils/net_ads.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/utils/net_ads.c b/source/utils/net_ads.c
index 8053b24051b..db2021ff7b2 100644
--- a/source/utils/net_ads.c
+++ b/source/utils/net_ads.c
@@ -117,7 +117,9 @@ static int net_ads_cldap_netlogon(struct net_context *c, ADS_STRUCT *ads)
"\tIs the closest DC: %s\n"
"\tIs writable: %s\n"
"\tHas a hardware clock: %s\n"
- "\tIs a non-domain NC serviced by LDAP server: %s\n",
+ "\tIs a non-domain NC serviced by LDAP server: %s\n"
+ "\tIs NT6 DC that has some secrets: %s\n"
+ "\tIs NT6 DC that has all secrets: %s\n",
(reply.server_type & NBT_SERVER_PDC) ? "yes" : "no",
(reply.server_type & NBT_SERVER_GC) ? "yes" : "no",
(reply.server_type & NBT_SERVER_LDAP) ? "yes" : "no",
@@ -127,7 +129,10 @@ static int net_ads_cldap_netlogon(struct net_context *c, ADS_STRUCT *ads)
(reply.server_type & NBT_SERVER_CLOSEST) ? "yes" : "no",
(reply.server_type & NBT_SERVER_WRITABLE) ? "yes" : "no",
(reply.server_type & NBT_SERVER_GOOD_TIMESERV) ? "yes" : "no",
- (reply.server_type & DS_SERVER_NDNC) ? "yes" : "no");
+ (reply.server_type & NBT_SERVER_NDNC) ? "yes" : "no",
+ (reply.server_type & NBT_SERVER_SELECT_SECRET_DOMAIN_6) ? "yes" : "no",
+ (reply.server_type & NBT_SERVER_FULL_SECRET_DOMAIN_6) ? "yes" : "no");
+
printf("Forest:\t\t\t%s\n", reply.forest);
printf("Domain:\t\t\t%s\n", reply.dns_domain);