netapi: add NetUserSetGroups to public header.
authorGünther Deschner <gd@samba.org>
Mon, 8 Sep 2008 08:26:11 +0000 (10:26 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 11 Sep 2008 12:28:54 +0000 (14:28 +0200)
Guenther
(This used to be commit 3e96cd229c1536a7e16441f600c379ceb651b2b3)

source3/lib/netapi/netapi.h

index 234caf4b930622841c7506e6c13aa62a089140da..b1b8e8f3fc6382a6c9d7b12040390ad12af4ee8c 100644 (file)
@@ -1149,6 +1149,28 @@ NET_API_STATUS NetUserGetGroups(const char * server_name /* [in] */,
                                uint32_t *entries_read /* [out] [ref] */,
                                uint32_t *total_entries /* [out] [ref] */);
 
+/************************************************************//**
+ *
+ * NetUserSetGroups
+ *
+ * @brief Set grouplist of a user on a server
+ *
+ * @param[in] server_name The server name to connect to
+ * @param[in] user_name The user name to query
+ * @param[in] level The level defining the GROUP_USERS_INFO_X structures in the buffer
+ * @param[in] buffer The buffer containing GROUP_USERS_INFO_X structures
+ * @param[in] num_entries The number of X structures in the buffer
+ * @return NET_API_STATUS
+ *
+ * example user/user_setgroups.c
+ ***************************************************************/
+
+NET_API_STATUS NetUserSetGroups(const char * server_name /* [in] */,
+                               const char * user_name /* [in] */,
+                               uint32_t level /* [in] */,
+                               uint8_t *buffer /* [in] [ref] */,
+                               uint32_t num_entries /* [in] */);
+
 /************************************************************//**
  *
  * NetQueryDisplayInformation