diff options
author | Günther Deschner <gd@samba.org> | 2008-05-27 12:05:31 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-06-03 01:27:39 +0200 |
commit | 93baa932088d8f7b806b05cc73fc6f467c48fe81 (patch) | |
tree | 37bb9ee8045913cd583046d1274db77f8a2a6d35 /source3/librpc | |
parent | 11ef7d202a2f9f438c379ee5e2696be63c750758 (diff) | |
download | samba-93baa932088d8f7b806b05cc73fc6f467c48fe81.tar.gz samba-93baa932088d8f7b806b05cc73fc6f467c48fe81.tar.bz2 samba-93baa932088d8f7b806b05cc73fc6f467c48fe81.zip |
idl: add NetGroupAdd() to libnetapi.
Guenther
(This used to be commit 7d1ca6f73407d9752402c84da4b41e224a434181)
Diffstat (limited to 'source3/librpc')
-rw-r--r-- | source3/librpc/idl/libnetapi.idl | 40 |
1 files changed, 40 insertions, 0 deletions
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 + ); } |