summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/libnetapi.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-02 22:29:32 +0200
committerGünther Deschner <gd@samba.org>2008-06-03 01:27:49 +0200
commitbf225fc8e0d9160527fcf1cce5896c300a594f1e (patch)
tree5ad11010903feed2d153e9e8ef0c49aa0116880e /source3/lib/netapi/libnetapi.c
parent504fbb5b2395c7417ce485a460dd44fefe9862b3 (diff)
downloadsamba-bf225fc8e0d9160527fcf1cce5896c300a594f1e.tar.gz
samba-bf225fc8e0d9160527fcf1cce5896c300a594f1e.tar.bz2
samba-bf225fc8e0d9160527fcf1cce5896c300a594f1e.zip
netapi: add NetLocalGroupSetInfo() skeleton.
Guenther (This used to be commit 325f419636a69c40ee25c068787866384ef52279)
Diffstat (limited to 'source3/lib/netapi/libnetapi.c')
-rw-r--r--source3/lib/netapi/libnetapi.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/source3/lib/netapi/libnetapi.c b/source3/lib/netapi/libnetapi.c
index dbe26882d2..097086f12f 100644
--- a/source3/lib/netapi/libnetapi.c
+++ b/source3/lib/netapi/libnetapi.c
@@ -1041,3 +1041,51 @@ NET_API_STATUS NetLocalGroupGetInfo(const char * server_name /* [in] */,
return r.out.result;
}
+/****************************************************************
+ NetLocalGroupSetInfo
+****************************************************************/
+
+NET_API_STATUS NetLocalGroupSetInfo(const char * server_name /* [in] */,
+ const char * group_name /* [in] */,
+ uint32_t level /* [in] */,
+ uint8_t *buf /* [in] [ref] */,
+ uint32_t *parm_err /* [out] [ref] */)
+{
+ struct NetLocalGroupSetInfo r;
+ struct libnetapi_ctx *ctx = NULL;
+ NET_API_STATUS status;
+ WERROR werr;
+
+ status = libnetapi_getctx(&ctx);
+ if (status != 0) {
+ return status;
+ }
+
+ /* In parameters */
+ r.in.server_name = server_name;
+ r.in.group_name = group_name;
+ r.in.level = level;
+ r.in.buf = buf;
+
+ /* Out parameters */
+ r.out.parm_err = parm_err;
+
+ if (DEBUGLEVEL >= 10) {
+ NDR_PRINT_IN_DEBUG(NetLocalGroupSetInfo, &r);
+ }
+
+ if (LIBNETAPI_LOCAL_SERVER(server_name)) {
+ werr = NetLocalGroupSetInfo_l(ctx, &r);
+ } else {
+ werr = NetLocalGroupSetInfo_r(ctx, &r);
+ }
+
+ r.out.result = W_ERROR_V(werr);
+
+ if (DEBUGLEVEL >= 10) {
+ NDR_PRINT_OUT_DEBUG(NetLocalGroupSetInfo, &r);
+ }
+
+ return r.out.result;
+}
+