]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
idl: add NetGroupAdd() to libnetapi.
authorGünther Deschner <gd@samba.org>
Tue, 27 May 2008 10:05:31 +0000 (12:05 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 2 Jun 2008 23:27:39 +0000 (01:27 +0200)
Guenther

source/librpc/idl/libnetapi.idl

index 01eb01058091dec1c93221ef4ed75bb653cc52bc..875906f32bd3868ede9dd3779b78fa22f985ba27 100644 (file)
@@ -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
+               );
 }