summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-07-18 23:43:33 +0200
committerGünther Deschner <gd@samba.org>2008-07-30 16:55:12 +0200
commit493fb24e37f5685c5999eb684f5a8ca0bcf8e09e (patch)
treecf9b82c96cb186e427c861efd9566a46b45ab775 /source3/lib/netapi
parentcf2ac8f8db3b62afb2c9a6ff56de5d9691af5a0f (diff)
downloadsamba-493fb24e37f5685c5999eb684f5a8ca0bcf8e09e.tar.gz
samba-493fb24e37f5685c5999eb684f5a8ca0bcf8e09e.tar.bz2
samba-493fb24e37f5685c5999eb684f5a8ca0bcf8e09e.zip
netapi: add NetGroupGetUsers to public header.
Guenther (This used to be commit d31f822b79ed5344ec3c6795d66ceefd024b7d30)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/netapi.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h
index 7d32ffcbae..a1041c009d 100644
--- a/source3/lib/netapi/netapi.h
+++ b/source3/lib/netapi/netapi.h
@@ -290,6 +290,15 @@ struct GROUP_INFO_1005 {
uint32_t grpi1005_attributes;
};
+struct GROUP_USERS_INFO_0 {
+ const char * grui0_name;
+};
+
+struct GROUP_USERS_INFO_1 {
+ const char * grui1_name;
+ uint32_t grui1_attributes;
+};
+
struct LOCALGROUP_INFO_0 {
const char * lgrpi0_name;
};
@@ -901,6 +910,35 @@ NET_API_STATUS NetGroupDelUser(const char * server_name /* [in] */,
/************************************************************//**
*
+ * NetGroupGetUsers
+ *
+ * @brief Get Users for a group on a server
+ *
+ * @param[in] server_name The server name to connect to
+ * @param[in] group_name The group name to enumerate users for
+ * @param[in] level The enumeration level used for the query
+ * @param[out] buffer The returned enumeration buffer
+ * @param[in] prefmaxlen The requested maximal buffer size
+ * @param[out] entries_read The number of returned entries
+ * @param[out] total_entries The number of total entries
+ * @param[in,out] resume_handle A handle passed in and returned for resuming
+ * operations
+ * @return NET_API_STATUS
+ *
+ * example group/group_getusers.c
+ ***************************************************************/
+
+NET_API_STATUS NetGroupGetUsers(const char * server_name /* [in] */,
+ const char * group_name /* [in] */,
+ uint32_t level /* [in] */,
+ uint8_t **buffer /* [out] [ref] */,
+ uint32_t prefmaxlen /* [in] */,
+ uint32_t *entries_read /* [out] [ref] */,
+ uint32_t *total_entries /* [out] [ref] */,
+ uint32_t *resume_handle /* [in,out] [ref] */);
+
+/************************************************************//**
+ *
* NetLocalGroupAdd
*
* @brief Create Local Group