add WINBIND_LOOKUP_LEVEL_RIDS2NAMES idl TODO
authorStefan Metzmacher <metze@sernet.de>
Fri, 25 Jan 2008 13:17:12 +0000 (14:17 +0100)
committerStefan Metzmacher <metze@sernet.de>
Fri, 2 May 2008 14:13:19 +0000 (16:13 +0200)
TODO:
may not repeat domain_name for each name

metze

source/librpc/idl/winbind_protocol.idl

index 8b34353d0ae46a371852c1c711a3a028e221ea0a..2819ae55a434f2642b9e19296231cdeeca9fb065 100644 (file)
@@ -106,14 +106,23 @@ import "security.idl",  "lsa.idl";
 
        typedef [v1_enum] enum {
                WINBIND_LOOKUP_LEVEL_SID2NAME   = 1,
-               WINBIND_LOOKUP_LEVEL_NAME2SID   = 2
+               WINBIND_LOOKUP_LEVEL_NAME2SID   = 2,
+               WINBIND_LOOKUP_LEVEL_RIDS2NAMES = 3
        } winbind_lookup_level;
 
+       struct winbind_lookup_req_rids {
+/*TODO         [ref]*/ dom_sid *domain_sid;
+               uint32 num_rids;
+               uint32 rids[num_rids];
+       };
+
        typedef [switch_type(winbind_lookup_level)] union {
        [case(WINBIND_LOOKUP_LEVEL_SID2NAME)]
 /*TODO         [ref]*/ dom_sid *sid;
        [case(WINBIND_LOOKUP_LEVEL_NAME2SID)]
                [string,charset(UTF8)] uint8 name[];
+       [case(WINBIND_LOOKUP_LEVEL_RIDS2NAMES)]
+               struct winbind_lookup_req_rids rids;
        [default];
        } winbind_lookup_req;
 
@@ -128,11 +137,18 @@ import "security.idl",  "lsa.idl";
                lsa_SidType type;
        };
 
+       struct winbind_lookup_name_info_array {
+               uint32 num_names;
+               struct winbind_lookup_name_info names[num_names];
+       };
+
        typedef [switch_type(winbind_lookup_level)] union {
        [case(WINBIND_LOOKUP_LEVEL_SID2NAME)]
                struct winbind_lookup_name_info name_info;
        [case(WINBIND_LOOKUP_LEVEL_NAME2SID)]
                struct winbind_lookup_sid_info sid_info;
+       [case(WINBIND_LOOKUP_LEVEL_RIDS2NAMES)]
+               struct winbind_lookup_name_info_array name_array;
        [default];
        } winbind_lookup_rep;