netapi: add NetLocalGroupDel() skeleton.
authorGünther Deschner <gd@samba.org>
Mon, 2 Jun 2008 17:20:25 +0000 (19:20 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 2 Jun 2008 23:27:47 +0000 (01:27 +0200)
Guenther
(This used to be commit 4234c87c6c30434bc5bcfcc003fdaa0114e9d74a)

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

index 6537329fe054217c17aa4b536f7678000206358c..522d2aa9706f7049a422257633f0c0585bbb99e7 100644 (file)
@@ -953,3 +953,45 @@ NET_API_STATUS NetLocalGroupAdd(const char * server_name /* [in] */,
        return r.out.result;
 }
 
+/****************************************************************
+ NetLocalGroupDel
+****************************************************************/
+
+NET_API_STATUS NetLocalGroupDel(const char * server_name /* [in] */,
+                               const char * group_name /* [in] */)
+{
+       struct NetLocalGroupDel 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;
+
+       /* Out parameters */
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_IN_DEBUG(NetLocalGroupDel, &r);
+       }
+
+       if (LIBNETAPI_LOCAL_SERVER(server_name)) {
+               werr = NetLocalGroupDel_l(ctx, &r);
+       } else {
+               werr = NetLocalGroupDel_r(ctx, &r);
+       }
+
+       r.out.result = W_ERROR_V(werr);
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_OUT_DEBUG(NetLocalGroupDel, &r);
+       }
+
+       return r.out.result;
+}
+
index 38826996fa541d91421e6d8a5e772ba961916332..2386488b7281325a5447bf193bfa5c8152a2dd32 100644 (file)
@@ -164,4 +164,10 @@ WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx,
                          struct NetLocalGroupAdd *r);
 WERROR NetLocalGroupAdd_l(struct libnetapi_ctx *ctx,
                          struct NetLocalGroupAdd *r);
+NET_API_STATUS NetLocalGroupDel(const char * server_name /* [in] */,
+                               const char * group_name /* [in] */);
+WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx,
+                         struct NetLocalGroupDel *r);
+WERROR NetLocalGroupDel_l(struct libnetapi_ctx *ctx,
+                         struct NetLocalGroupDel *r);
 #endif /* __LIBNETAPI_LIBNETAPI__ */
index ab550ede9cdbe4d4fafad63057059b1e836306d1..b2e5d9094b30ed6f1bca68f227c5bd7f7614d62f 100644 (file)
@@ -192,3 +192,23 @@ WERROR NetLocalGroupAdd_l(struct libnetapi_ctx *ctx,
 {
        return NetLocalGroupAdd_r(ctx, r);
 }
+
+/****************************************************************
+****************************************************************/
+
+
+WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx,
+                         struct NetLocalGroupDel *r)
+{
+       return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+
+WERROR NetLocalGroupDel_l(struct libnetapi_ctx *ctx,
+                         struct NetLocalGroupDel *r)
+{
+       return WERR_NOT_SUPPORTED;
+}