netapi: add NetLocalGroupGetInfo() skeleton.
authorGünther Deschner <gd@samba.org>
Mon, 2 Jun 2008 18:20:27 +0000 (20:20 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 2 Jun 2008 23:27:48 +0000 (01:27 +0200)
Guenther

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

index 522d2aa9706f7049a422257633f0c0585bbb99e7..dbe26882d2ee98e87d18179ba1349e2775b41fce 100644 (file)
@@ -995,3 +995,49 @@ NET_API_STATUS NetLocalGroupDel(const char * server_name /* [in] */,
        return r.out.result;
 }
 
+/****************************************************************
+ NetLocalGroupGetInfo
+****************************************************************/
+
+NET_API_STATUS NetLocalGroupGetInfo(const char * server_name /* [in] */,
+                                   const char * group_name /* [in] */,
+                                   uint32_t level /* [in] */,
+                                   uint8_t **buf /* [out] [ref] */)
+{
+       struct NetLocalGroupGetInfo 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;
+
+       /* Out parameters */
+       r.out.buf = buf;
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_IN_DEBUG(NetLocalGroupGetInfo, &r);
+       }
+
+       if (LIBNETAPI_LOCAL_SERVER(server_name)) {
+               werr = NetLocalGroupGetInfo_l(ctx, &r);
+       } else {
+               werr = NetLocalGroupGetInfo_r(ctx, &r);
+       }
+
+       r.out.result = W_ERROR_V(werr);
+
+       if (DEBUGLEVEL >= 10) {
+               NDR_PRINT_OUT_DEBUG(NetLocalGroupGetInfo, &r);
+       }
+
+       return r.out.result;
+}
+
index 2386488b7281325a5447bf193bfa5c8152a2dd32..3ee8cf3634f5dba4b9b611d48312e92babb39c8e 100644 (file)
@@ -170,4 +170,12 @@ WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx,
                          struct NetLocalGroupDel *r);
 WERROR NetLocalGroupDel_l(struct libnetapi_ctx *ctx,
                          struct NetLocalGroupDel *r);
+NET_API_STATUS NetLocalGroupGetInfo(const char * server_name /* [in] */,
+                                   const char * group_name /* [in] */,
+                                   uint32_t level /* [in] */,
+                                   uint8_t **buf /* [out] [ref] */);
+WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx,
+                             struct NetLocalGroupGetInfo *r);
+WERROR NetLocalGroupGetInfo_l(struct libnetapi_ctx *ctx,
+                             struct NetLocalGroupGetInfo *r);
 #endif /* __LIBNETAPI_LIBNETAPI__ */
index fd76e09e8e5daf9e299c908b6266fbb6eca8358e..09b86c8bd9e1eb5c271a404e64aba2c6b8c20c2e 100644 (file)
@@ -341,9 +341,27 @@ WERROR NetLocalGroupDel_r(struct libnetapi_ctx *ctx,
 /****************************************************************
 ****************************************************************/
 
-
 WERROR NetLocalGroupDel_l(struct libnetapi_ctx *ctx,
                          struct NetLocalGroupDel *r)
 {
        return NetLocalGroupDel_r(ctx, r);
 }
+
+/****************************************************************
+****************************************************************/
+
+
+WERROR NetLocalGroupGetInfo_r(struct libnetapi_ctx *ctx,
+                             struct NetLocalGroupGetInfo *r)
+{
+       return WERR_NOT_SUPPORTED;
+}
+
+/****************************************************************
+****************************************************************/
+
+WERROR NetLocalGroupGetInfo_l(struct libnetapi_ctx *ctx,
+                             struct NetLocalGroupGetInfo *r)
+{
+       return WERR_NOT_SUPPORTED;
+}