summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-02 19:20:25 +0200
committerGünther Deschner <gd@samba.org>2008-06-03 01:27:47 +0200
commit7773d79afd4718cacd33d490870c5bc042642d1f (patch)
treedef1519f0ee9306a32d7a666f20c864b36047b31 /source3/lib/netapi
parent7019644a77c1d5b364736b654726a1d5582febeb (diff)
downloadsamba-7773d79afd4718cacd33d490870c5bc042642d1f.tar.gz
samba-7773d79afd4718cacd33d490870c5bc042642d1f.tar.bz2
samba-7773d79afd4718cacd33d490870c5bc042642d1f.zip
netapi: add NetLocalGroupDel() skeleton.
Guenther (This used to be commit 4234c87c6c30434bc5bcfcc003fdaa0114e9d74a)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/libnetapi.c42
-rw-r--r--source3/lib/netapi/libnetapi.h6
-rw-r--r--source3/lib/netapi/localgroup.c20
3 files changed, 68 insertions, 0 deletions
diff --git a/source3/lib/netapi/libnetapi.c b/source3/lib/netapi/libnetapi.c
index 6537329fe0..522d2aa970 100644
--- a/source3/lib/netapi/libnetapi.c
+++ b/source3/lib/netapi/libnetapi.c
@@ -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;
+}
+
diff --git a/source3/lib/netapi/libnetapi.h b/source3/lib/netapi/libnetapi.h
index 38826996fa..2386488b72 100644
--- a/source3/lib/netapi/libnetapi.h
+++ b/source3/lib/netapi/libnetapi.h
@@ -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__ */
diff --git a/source3/lib/netapi/localgroup.c b/source3/lib/netapi/localgroup.c
index ab550ede9c..b2e5d9094b 100644
--- a/source3/lib/netapi/localgroup.c
+++ b/source3/lib/netapi/localgroup.c
@@ -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;
+}