summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-02 19:12:54 +0200
committerGünther Deschner <gd@samba.org>2008-06-03 01:27:46 +0200
commitdac9e2228c93d296f2fd3110837ec8e7edbd3ea8 (patch)
treedbe4eb0d76d5f18e85e5417bbe241e445408aab4 /source3/lib
parent97cf9db58307a6869967d056e7e5113d5985d583 (diff)
downloadsamba-dac9e2228c93d296f2fd3110837ec8e7edbd3ea8.tar.gz
samba-dac9e2228c93d296f2fd3110837ec8e7edbd3ea8.tar.bz2
samba-dac9e2228c93d296f2fd3110837ec8e7edbd3ea8.zip
netapi: add NetLocalGroupAdd to public api.
Guenther (This used to be commit 05ded246426415b61597d003ffac519847c08620)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/netapi.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h
index d787cedf4c..d08f1b7f74 100644
--- a/source3/lib/netapi/netapi.h
+++ b/source3/lib/netapi/netapi.h
@@ -144,6 +144,19 @@ struct GROUP_INFO_1005 {
uint32_t grpi1005_attributes;
};
+struct LOCALGROUP_INFO_0 {
+ const char * lgrpi0_name;
+};
+
+struct LOCALGROUP_INFO_1 {
+ const char * lgrpi1_name;
+ const char * lgrpi1_comment;
+};
+
+struct LOCALGROUP_INFO_1002 {
+ const char * lgrpi1002_comment;
+};
+
#endif /* _HEADER_libnetapi */
/****************************************************************
@@ -617,4 +630,24 @@ NET_API_STATUS NetGroupDelUser(const char * server_name /* [in] */,
const char * group_name /* [in] */,
const char * user_name /* [in] */);
+/************************************************************//**
+ *
+ * NetLocalGroupAdd
+ *
+ * @brief Create Local Group
+ *
+ * @param[in] server_name The server name to connect to
+ * @param[in] level The level used for the new group creation
+ * @param[in] buf The buffer containing the group structure
+ * @param[out] parm_err The returned parameter error number if any
+ * @return NET_API_STATUS
+ *
+ * example localgroup/localgroup_add.c
+ ***************************************************************/
+
+NET_API_STATUS NetLocalGroupAdd(const char * server_name /* [in] */,
+ uint32_t level /* [in] */,
+ uint8_t *buf /* [in] [ref] */,
+ uint32_t *parm_err /* [out] [ref] */);
+
#endif