WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
NetWkstaGetInfo
****************************************************************/
-NET_API_STATUS NetWkstaGetInfo(const char * wksta_name /* [in] [unique] */,
- uint32_t level /* [in] */,
- uint8_t **buffer /* [out] [ref] */)
+NET_API_STATUS NetWkstaGetInfo(const char * server_name /* [in] [unique] */,
+ uint32_t level /* [in] */,
+ uint8_t **buffer /* [out] [ref] */)
{
struct NetWkstaGetInfo r;
struct libnetapi_ctx *ctx = NULL;
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
}
/* In parameters */
- r.in.server_name = wksta_name;
+ r.in.server_name = server_name;
r.in.level = level;
/* Out parameters */
NDR_PRINT_IN_DEBUG(NetWkstaGetInfo, &r);
}
- if (LIBNETAPI_LOCAL_SERVER(wksta_name)) {
+ if (LIBNETAPI_LOCAL_SERVER(server_name)) {
werr = NetWkstaGetInfo_l(ctx, &r);
} else {
werr = NetWkstaGetInfo_r(ctx, &r);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
NDR_PRINT_IN_DEBUG(NetUserChangePassword, &r);
}
- if (LIBNETAPI_LOCAL_SERVER(domain_name)) {
- werr = NetUserChangePassword_l(ctx, &r);
- } else {
- werr = NetUserChangePassword_r(ctx, &r);
- }
+ werr = NetUserChangePassword_l(ctx, &r);
r.out.result = W_ERROR_V(werr);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);
NET_API_STATUS I_NetLogonControl2(const char * server_name /* [in] */,
uint32_t function_code /* [in] */,
uint32_t query_level /* [in] */,
- uint8_t *data /* [in] [ref] */,
+ uint8_t *data /* [in] [unique] */,
uint8_t **buffer /* [out] [ref] */)
{
struct I_NetLogonControl2 r;
WERROR werr;
TALLOC_CTX *frame = talloc_stackframe();
+ ZERO_STRUCT(r);
+
status = libnetapi_getctx(&ctx);
if (status != 0) {
TALLOC_FREE(frame);