diff options
author | Günther Deschner <gd@samba.org> | 2014-10-23 14:05:40 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-10-24 11:30:05 +0200 |
commit | eb8d914d913bc7d98492361baf2b8eb721bd0069 (patch) | |
tree | f7bafcc20035761505b6b77b900298136d9c4234 | |
parent | 4c88897471c94cbe923e290a742d5beb9caa2e1b (diff) | |
download | samba-eb8d914d913bc7d98492361baf2b8eb721bd0069.tar.gz samba-eb8d914d913bc7d98492361baf2b8eb721bd0069.tar.xz samba-eb8d914d913bc7d98492361baf2b8eb721bd0069.zip |
s3-netapi: add DS_8 and WS flags to libnetapi and nltest.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source3/lib/netapi/examples/netlogon/nltest.c | 5 | ||||
-rw-r--r-- | source3/lib/netapi/netapi.h | 2 | ||||
-rw-r--r-- | source3/librpc/idl/libnetapi.idl | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/source3/lib/netapi/examples/netlogon/nltest.c b/source3/lib/netapi/examples/netlogon/nltest.c index 0c393ea3be..f75a995328 100644 --- a/source3/lib/netapi/examples/netlogon/nltest.c +++ b/source3/lib/netapi/examples/netlogon/nltest.c @@ -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"); } diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h index c273ae052d..6fc539c8f6 100644 --- a/source3/lib/netapi/netapi.h +++ b/source3/lib/netapi/netapi.h @@ -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 ) diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index f29e666ad9..2f3a08ce0b 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -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 |