add idl for winbindd_get_dc_info() with compat levels
authorStefan Metzmacher <metze@sernet.de>
Wed, 12 Sep 2007 06:47:32 +0000 (08:47 +0200)
committerStefan Metzmacher <metze@sernet.de>
Thu, 11 Oct 2007 15:21:47 +0000 (17:21 +0200)
metze

source/librpc/idl/winbind_protocol.idl

index ef2a69b..5381be9 100644 (file)
@@ -161,7 +161,24 @@ import "security.idl";
        );
 
        /* Issue a GetDCName or DsGetDCName Request */
-       winbind_status winbind_get_dc_info(/*TODO*/);
+       typedef [v1_enum] enum {
+               WINBIND_DC_INFO_LEVEL_COMPAT_NT4        = 1,
+               WINBIND_DC_INFO_LEVEL_COMPAT_DS         = 2
+       } winbind_dc_info_level;
+
+       typedef [switch_type(winbind_dc_info_level)] union {
+       [case(WINBIND_DC_INFO_LEVEL_COMPAT_NT4)]
+               [string,charset(UTF8)] uint8 *name;
+       [case(WINBIND_DC_INFO_LEVEL_COMPAT_DS)]
+               [string,charset(UTF8)] uint8 *name;
+       } winbind_dc_info;
+
+       winbind_status winbind_get_dc_info(
+               [in,string,charset(UTF8)] uint8 domain_name[],
+               [in,unique,string,charset(UTF8)] uint8 *dc_name,
+               [in,out] winbind_dc_info_level *level,
+               [out,switch_is(*level)] winbind_dc_info *dc_info
+       );
 
        /* display sequence numbers of domains */
        winbind_status winbind_show_sequence(/*TODO*/);