mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s3-libnetapi: add NetRequestOfflineDomainJoin() boilerplate.
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
@ -786,3 +786,21 @@ WERROR NetProvisionComputerAccount_l(struct libnetapi_ctx *ctx,
|
||||
|
||||
return werr;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
****************************************************************/
|
||||
|
||||
WERROR NetRequestOfflineDomainJoin_r(struct libnetapi_ctx *ctx,
|
||||
struct NetRequestOfflineDomainJoin *r)
|
||||
{
|
||||
return WERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
****************************************************************/
|
||||
|
||||
WERROR NetRequestOfflineDomainJoin_l(struct libnetapi_ctx *ctx,
|
||||
struct NetRequestOfflineDomainJoin *r)
|
||||
{
|
||||
return WERR_NOT_SUPPORTED;
|
||||
}
|
||||
|
@ -345,6 +345,53 @@ NET_API_STATUS NetProvisionComputerAccount(const char * domain /* [in] [ref] */,
|
||||
return (NET_API_STATUS)r.out.result;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
NetRequestOfflineDomainJoin
|
||||
****************************************************************/
|
||||
|
||||
NET_API_STATUS NetRequestOfflineDomainJoin(uint8_t *provision_bin_data /* [in] [unique] */,
|
||||
uint32_t provision_bin_data_size /* [in] */,
|
||||
uint32_t options /* [in] */,
|
||||
const char * windows_path /* [in] [unique] */)
|
||||
{
|
||||
struct NetRequestOfflineDomainJoin r;
|
||||
struct libnetapi_ctx *ctx = NULL;
|
||||
NET_API_STATUS status;
|
||||
WERROR werr;
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
|
||||
ZERO_STRUCT(r);
|
||||
|
||||
status = libnetapi_getctx(&ctx);
|
||||
if (status != 0) {
|
||||
TALLOC_FREE(frame);
|
||||
return status;
|
||||
}
|
||||
|
||||
/* In parameters */
|
||||
r.in.provision_bin_data = provision_bin_data;
|
||||
r.in.provision_bin_data_size = provision_bin_data_size;
|
||||
r.in.options = options;
|
||||
r.in.windows_path = windows_path;
|
||||
|
||||
/* Out parameters */
|
||||
|
||||
if (DEBUGLEVEL >= 10) {
|
||||
NDR_PRINT_IN_DEBUG(NetRequestOfflineDomainJoin, &r);
|
||||
}
|
||||
|
||||
werr = NetRequestOfflineDomainJoin_l(ctx, &r);
|
||||
|
||||
r.out.result = W_ERROR_V(werr);
|
||||
|
||||
if (DEBUGLEVEL >= 10) {
|
||||
NDR_PRINT_OUT_DEBUG(NetRequestOfflineDomainJoin, &r);
|
||||
}
|
||||
|
||||
TALLOC_FREE(frame);
|
||||
return (NET_API_STATUS)r.out.result;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
NetServerGetInfo
|
||||
****************************************************************/
|
||||
|
@ -75,6 +75,14 @@ WERROR NetProvisionComputerAccount_r(struct libnetapi_ctx *ctx,
|
||||
struct NetProvisionComputerAccount *r);
|
||||
WERROR NetProvisionComputerAccount_l(struct libnetapi_ctx *ctx,
|
||||
struct NetProvisionComputerAccount *r);
|
||||
NET_API_STATUS NetRequestOfflineDomainJoin(uint8_t *provision_bin_data /* [in] [unique] */,
|
||||
uint32_t provision_bin_data_size /* [in] */,
|
||||
uint32_t options /* [in] */,
|
||||
const char * windows_path /* [in] [unique] */);
|
||||
WERROR NetRequestOfflineDomainJoin_r(struct libnetapi_ctx *ctx,
|
||||
struct NetRequestOfflineDomainJoin *r);
|
||||
WERROR NetRequestOfflineDomainJoin_l(struct libnetapi_ctx *ctx,
|
||||
struct NetRequestOfflineDomainJoin *r);
|
||||
NET_API_STATUS NetServerGetInfo(const char * server_name /* [in] [unique] */,
|
||||
uint32_t level /* [in] */,
|
||||
uint8_t **buffer /* [out] [ref] */);
|
||||
|
Reference in New Issue
Block a user