1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

netapi: add dummy implementation of NetGroupGetInfo().

Guenther
(This used to be commit 88d03b1645)
This commit is contained in:
Günther Deschner
2008-06-02 13:04:15 +02:00
parent e658d64eac
commit 5b111cc4d5
4 changed files with 93 additions and 0 deletions

View File

@ -735,3 +735,21 @@ WERROR NetGroupSetInfo_l(struct libnetapi_ctx *ctx,
{
return NetGroupSetInfo_r(ctx, r);
}
/****************************************************************
****************************************************************/
WERROR NetGroupGetInfo_r(struct libnetapi_ctx *ctx,
struct NetGroupGetInfo *r)
{
return WERR_NOT_SUPPORTED;
}
/****************************************************************
****************************************************************/
WERROR NetGroupGetInfo_l(struct libnetapi_ctx *ctx,
struct NetGroupGetInfo *r)
{
return WERR_NOT_SUPPORTED;
}

View File

@ -773,3 +773,49 @@ NET_API_STATUS NetGroupSetInfo(const char * server_name /* [in] */,
return r.out.result;
}
/****************************************************************
NetGroupGetInfo
****************************************************************/
NET_API_STATUS NetGroupGetInfo(const char * server_name /* [in] */,
const char * group_name /* [in] */,
uint32_t level /* [in] */,
uint8_t **buf /* [out] [ref] */)
{
struct NetGroupGetInfo 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(NetGroupGetInfo, &r);
}
if (LIBNETAPI_LOCAL_SERVER(server_name)) {
werr = NetGroupGetInfo_l(ctx, &r);
} else {
werr = NetGroupGetInfo_r(ctx, &r);
}
r.out.result = W_ERROR_V(werr);
if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(NetGroupGetInfo, &r);
}
return r.out.result;
}

View File

@ -134,4 +134,12 @@ WERROR NetGroupSetInfo_r(struct libnetapi_ctx *ctx,
struct NetGroupSetInfo *r);
WERROR NetGroupSetInfo_l(struct libnetapi_ctx *ctx,
struct NetGroupSetInfo *r);
NET_API_STATUS NetGroupGetInfo(const char * server_name /* [in] */,
const char * group_name /* [in] */,
uint32_t level /* [in] */,
uint8_t **buf /* [out] [ref] */);
WERROR NetGroupGetInfo_r(struct libnetapi_ctx *ctx,
struct NetGroupGetInfo *r);
WERROR NetGroupGetInfo_l(struct libnetapi_ctx *ctx,
struct NetGroupGetInfo *r);
#endif /* __LIBNETAPI_LIBNETAPI__ */

View File

@ -558,4 +558,25 @@ NET_API_STATUS NetGroupSetInfo(const char * server_name /* [in] */,
uint32_t level /* [in] */,
uint8_t *buf /* [in] [ref] */,
uint32_t *parm_err /* [out] [ref] */);
/************************************************************//**
*
* NetGroupGetInfo
*
* @brief Get Domain Group Information
*
* @param[in] server_name The server name to connect to
* @param[in] group_name The name of the group that is going to be modified
* @param[in] level The level defining the requested GROUP_INFO_X structure
* @param[out] buf The buffer containing a GROUP_INFO_X structure
* @return NET_API_STATUS
*
* example group/group_del.c
***************************************************************/
NET_API_STATUS NetGroupGetInfo(const char * server_name /* [in] */,
const char * group_name /* [in] */,
uint32_t level /* [in] */,
uint8_t **buf /* [out] [ref] */);
#endif