From: Günther Deschner Date: Mon, 2 Jun 2008 17:20:25 +0000 (+0200) Subject: netapi: add NetLocalGroupDel() skeleton. X-Git-Tag: samba-3.3.0pre1~1070 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4234c87c6c30434bc5bcfcc003fdaa0114e9d74a;p=thirdparty%2Fsamba.git netapi: add NetLocalGroupDel() skeleton. Guenther --- diff --git a/source/lib/netapi/libnetapi.c b/source/lib/netapi/libnetapi.c index 6537329fe05..522d2aa9706 100644 --- a/source/lib/netapi/libnetapi.c +++ b/source/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/source/lib/netapi/libnetapi.h b/source/lib/netapi/libnetapi.h index 38826996fa5..2386488b728 100644 --- a/source/lib/netapi/libnetapi.h +++ b/source/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/source/lib/netapi/localgroup.c b/source/lib/netapi/localgroup.c index ab550ede9cd..b2e5d9094b3 100644 --- a/source/lib/netapi/localgroup.c +++ b/source/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; +}