s3-netapi: add DS_8 and WS flags to libnetapi and nltest.
authorGünther Deschner <gd@samba.org>
Thu, 23 Oct 2014 12:05:40 +0000 (14:05 +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/lib/netapi/examples/netlogon/nltest.c
source3/lib/netapi/netapi.h
source3/librpc/idl/libnetapi.idl

index 0c393ea3beb97d96f17358df2a80700fd3667837..f75a995328e2d3b72896d21042082d2098c66696 100644 (file)
@@ -149,7 +149,10 @@ static void print_dc_info_flags(uint32_t flags)
                printf("CLOSE_SITE ");
        if (flags & DS_FULL_SECRET_DOMAIN_6_FLAG)
                printf("FULL_SECRET ");
-       /* "WS" */
+       if (flags & DS_WS_FLAG)
+               printf("WS ");
+       if (flags & DS_DS_8_FLAG)
+               printf("DS_8 ");
        printf("\n");
 }
 
index c273ae052d387c1e8aaa531028e76627fa7301f6..6fc539c8f6f09400c2aea1ad947d4ea610b0c4ae 100644 (file)
@@ -1309,6 +1309,8 @@ struct NETLOGON_INFO_4 {
 #define DS_NDNC_FLAG ( 0x00000400 )
 #define DS_SELECT_SECRET_DOMAIN_6_FLAG ( 0x00000800 )
 #define DS_FULL_SECRET_DOMAIN_6_FLAG ( 0x00001000 )
+#define DS_WS_FLAG ( 0x00002000 )
+#define DS_DS_8_FLAG ( 0x00004000 )
 #define DS_DNS_CONTROLLER_FLAG ( 0x20000000 )
 #define DS_DNS_DOMAIN_FLAG ( 0x40000000 )
 #define DS_DNS_FOREST_FLAG ( 0x80000000 )
index f29e666ad9d58b3ca93dbf1e41ba790cae1ec2b0..2f3a08ce0beeba34c10e072776750ebe3b0e7665 100644 (file)
@@ -837,7 +837,7 @@ interface libnetapi
        /* DsGetDcName                             */
        /*******************************************/
 
-       [public] typedef [v1_enum] enum {
+       [public] typedef [bitmap32bit] bitmap {
                DS_PDC_FLAG                     = 0x00000001,
                DS_GC_FLAG                      = 0x00000004,
                DS_LDAP_FLAG                    = 0x00000008,
@@ -850,6 +850,8 @@ interface libnetapi
                DS_NDNC_FLAG                    = 0x00000400,
                DS_SELECT_SECRET_DOMAIN_6_FLAG  = 0x00000800,
                DS_FULL_SECRET_DOMAIN_6_FLAG    = 0x00001000,
+               DS_WS_FLAG                      = 0x00002000,
+               DS_DS_8_FLAG                    = 0x00004000,
                DS_DNS_CONTROLLER_FLAG          = 0x20000000,
                DS_DNS_DOMAIN_FLAG              = 0x40000000,
                DS_DNS_FOREST_FLAG              = 0x80000000