mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
net: print NBT_SERVER_X_SECRET_DOMAIN_6 flags in "net ads lookup".
Guenther
(This used to be commit 420390ba0e
)
This commit is contained in:
@ -117,7 +117,9 @@ static int net_ads_cldap_netlogon(struct net_context *c, ADS_STRUCT *ads)
|
|||||||
"\tIs the closest DC: %s\n"
|
"\tIs the closest DC: %s\n"
|
||||||
"\tIs writable: %s\n"
|
"\tIs writable: %s\n"
|
||||||
"\tHas a hardware clock: %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_PDC) ? "yes" : "no",
|
||||||
(reply.server_type & NBT_SERVER_GC) ? "yes" : "no",
|
(reply.server_type & NBT_SERVER_GC) ? "yes" : "no",
|
||||||
(reply.server_type & NBT_SERVER_LDAP) ? "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_CLOSEST) ? "yes" : "no",
|
||||||
(reply.server_type & NBT_SERVER_WRITABLE) ? "yes" : "no",
|
(reply.server_type & NBT_SERVER_WRITABLE) ? "yes" : "no",
|
||||||
(reply.server_type & NBT_SERVER_GOOD_TIMESERV) ? "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("Forest:\t\t\t%s\n", reply.forest);
|
||||||
printf("Domain:\t\t\t%s\n", reply.dns_domain);
|
printf("Domain:\t\t\t%s\n", reply.dns_domain);
|
||||||
|
Reference in New Issue
Block a user