nbt-cli: display all known NBT_SERVER flags.
authorGünther Deschner <gd@samba.org>
Thu, 23 Oct 2014 12:04:35 +0000 (14:04 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 24 Oct 2014 09:30:05 +0000 (11:30 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/utils/net_ads.c
source4/torture/ldap/netlogon.c

index e96377f8fa6545609e0ed1ce5e0152e8585a87b9..7f3d74d78290505b009c89bc38c56bfc8764c58e 100644 (file)
@@ -99,7 +99,9 @@ static int net_ads_cldap_netlogon(struct net_context *c, ADS_STRUCT *ads)
                   "\tHas a hardware clock:                       %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"),
+                  "\tIs NT6 DC that has all secrets:             %s\n"
+                  "\tRuns Active Directory Web Services:         %s\n"
+                  "\tRuns on Windows 2012 or later:              %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"),
@@ -111,7 +113,9 @@ static int net_ads_cldap_netlogon(struct net_context *c, ADS_STRUCT *ads)
                   (reply.server_type & NBT_SERVER_GOOD_TIMESERV) ? _("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"));
+                  (reply.server_type & NBT_SERVER_FULL_SECRET_DOMAIN_6) ? _("yes") : _("no"),
+                  (reply.server_type & NBT_SERVER_ADS_WEB_SERVICE) ? _("yes") : _("no"),
+                  (reply.server_type & NBT_SERVER_DS_8) ? _("yes") : _("no"));
 
 
        printf(_("Forest:\t\t\t%s\n"), reply.forest);
index 8c6345b0bd0e59cb8a9c4009654864d0732fd338..064a5b34045f4b0e3a53b3e653312f6061265bc2 100644 (file)
@@ -341,6 +341,10 @@ static bool test_ldap_netlogon_flags(struct torture_context *tctx,
                printf("NBT_SERVER_SELECT_SECRET_DOMAIN_6");
        if (server_type & NBT_SERVER_FULL_SECRET_DOMAIN_6)
                printf("NBT_SERVER_FULL_SECRET_DOMAIN_6");
+       if (server_type & NBT_SERVER_ADS_WEB_SERVICE)
+               printf("NBT_SERVER_ADS_WEB_SERVICE ");
+       if (server_type & NBT_SERVER_DS_8)
+               printf("NBT_SERVER_DS_8 ");
        if (server_type & DS_DNS_CONTROLLER)
                printf("DS_DNS_CONTROLLER ");
        if (server_type & DS_DNS_DOMAIN)