netapi: add NetLocalGroupSetInfo() skeleton.
authorGünther Deschner <gd@samba.org>
Mon, 2 Jun 2008 20:29:32 +0000 (22:29 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 2 Jun 2008 23:27:49 +0000 (01:27 +0200)
Guenther
(This used to be commit 325f419636a69c40ee25c068787866384ef52279)

source3/lib/netapi/libnetapi.c
source3/lib/netapi/libnetapi.h
source3/lib/netapi/localgroup.c

index dbe26882d2ee98e87d18179ba1349e2775b41fce..097086f12f7fb8b331a803b763da2990e99038d4 100644 (file)
@@ -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;
+}
+
index 3ee8cf3634f5dba4b9b611d48312e92babb39c8e..911be7420b6860599a53353523a7f9b583b00d10 100644 (file)
@@ -178,4 +178,13 @@ WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx,
                              struct NetLocalGroupGetInfo *r);
 WERROR NetLocalGroupGetInfo_l(struct libnetapi_ctx *ctx,
                              struct NetLocalGroupGetInfo *r);
+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] */);
+WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx,
+                             struct NetLocalGroupSetInfo *r);
+WERROR NetLocalGroupSetInfo_l(struct libnetapi_ctx *ctx,
+                             struct NetLocalGroupSetInfo *r);
 #endif /* __LIBNETAPI_LIBNETAPI__ */
index d05ebd3457328a576e943de24402e3bb9cc0353e..7f7aa9a2b1a515e3ad9699f498ca1149892594d2 100644 (file)
@@ -551,3 +551,23 @@ WERROR NetLocalGroupGetInfo_l(struct libnetapi_ctx *ctx,
 {
        return NetLocalGroupGetInfo_r(ctx, r);
 }
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx,
+                             struct NetLocalGroupSetInfo *r)
+{
+       return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetLocalGroupSetInfo_l(struct libnetapi_ctx *ctx,
+                             struct NetLocalGroupSetInfo *r)
+{
+       return WERR_NOT_SUPPORTED;
+}
+
+