From 93baa932088d8f7b806b05cc73fc6f467c48fe81 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 27 May 2008 12:05:31 +0200 Subject: idl: add NetGroupAdd() to libnetapi. Guenther (This used to be commit 7d1ca6f73407d9752402c84da4b41e224a434181) --- source3/librpc/idl/libnetapi.idl | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'source3/librpc') diff --git a/source3/librpc/idl/libnetapi.idl b/source3/librpc/idl/libnetapi.idl index 01eb010580..875906f32b 100644 --- a/source3/librpc/idl/libnetapi.idl +++ b/source3/librpc/idl/libnetapi.idl @@ -3,6 +3,9 @@ */ cpp_quote("#define LIBNETAPI_LOCAL_SERVER(x) (!x || is_myname_or_ipaddr(x))") +cpp_quote("#ifndef MAXSUBAUTHS") +cpp_quote("#define MAXSUBAUTHS 15 /* max sub authorities in a SID */") +cpp_quote("#endif") [ pointer_default(unique) @@ -15,6 +18,13 @@ interface libnetapi NERR_Success=0 } NET_API_STATUS; + [public] typedef struct { + uint8 sid_rev_num; + uint8 num_auths; + uint8 id_auth[6]; + uint32 sub_auths[MAXSUBAUTHS]; + } domsid; + [nopush,nopull] NET_API_STATUS NetJoinDomain( [in,unique] string *server, [in,ref] string *domain, @@ -168,4 +178,34 @@ interface libnetapi [out,ref] uint32 *entries_read, [out,ref,noprint] void **buffer ); + + typedef struct { + string grpi0_name; + } GROUP_INFO_0; + + typedef struct { + string grpi1_name; + string grpi1_comment; + } GROUP_INFO_1; + + typedef struct { + string grpi2_name; + string grpi2_comment; + uint32 grpi2_group_id; + uint32 grpi2_attributes; + } GROUP_INFO_2; + + typedef struct { + string grpi3_name; + string grpi3_comment; + domsid grpi3_group_sid; + uint32 grpi3_attributes; + } GROUP_INFO_3; + + [nopush,nopull] NET_API_STATUS NetGroupAdd( + [in] string server_name, + [in] uint32 level, + [in] uint8 *buf, + [out] uint32 *parm_err + ); } -- cgit