summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/libnetapi.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-02 12:54:17 +0200
committerGünther Deschner <gd@samba.org>2008-06-03 01:27:42 +0200
commitb01a0a16a6dc167bf25fb2f90cb7d7a4471194c2 (patch)
tree0925e8e7f255bcf336e2a417e4fec175bdec89da /source3/lib/netapi/libnetapi.c
parente11081a672251fa0bd5b494cf7790954d19a1be1 (diff)
downloadsamba-b01a0a16a6dc167bf25fb2f90cb7d7a4471194c2.tar.gz
samba-b01a0a16a6dc167bf25fb2f90cb7d7a4471194c2.tar.bz2
samba-b01a0a16a6dc167bf25fb2f90cb7d7a4471194c2.zip
netapi: Add dummy implementation of NetGroupSetInfo().
Guenther (This used to be commit 7e47bdc0829d7ac856028a99389310f721a265ce)
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 75087e8b29..0e1d1b30a5 100644
--- a/source3/lib/netapi/libnetapi.c
+++ b/source3/lib/netapi/libnetapi.c
@@ -725,3 +725,51 @@ NET_API_STATUS NetGroupDel(const char * server_name /* [in] */,
return r.out.result;
}
+/****************************************************************
+ NetGroupSetInfo
+****************************************************************/
+
+NET_API_STATUS NetGroupSetInfo(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 NetGroupSetInfo 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(NetGroupSetInfo, &r);
+ }
+
+ if (LIBNETAPI_LOCAL_SERVER(server_name)) {
+ werr = NetGroupSetInfo_l(ctx, &r);
+ } else {
+ werr = NetGroupSetInfo_r(ctx, &r);
+ }
+
+ r.out.result = W_ERROR_V(werr);
+
+ if (DEBUGLEVEL >= 10) {
+ NDR_PRINT_OUT_DEBUG(NetGroupSetInfo, &r);
+ }
+
+ return r.out.result;
+}
+