From 9bbfe84cb9a405e710a174b0ddac273d154fa861 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Tue, 7 Jun 2005 23:26:13 +0000 Subject: r7382: Convert net_user code so that is can be compiled against changed CreateUser call. Doesn't work yet, but the test passes. rafal (This used to be commit a50ebd4a16ac141214cc24b3390da78a209b4284) --- source4/utils/net/net_user.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/utils/net') diff --git a/source4/utils/net/net_user.c b/source4/utils/net/net_user.c index 690b393e50..b1bf85d6f2 100644 --- a/source4/utils/net/net_user.c +++ b/source4/utils/net/net_user.c @@ -28,7 +28,7 @@ static int net_user_add(struct net_context *ctx, int argc, const char **argv) { NTSTATUS status; struct libnet_context *lnet_ctx; - union libnet_CreateUser r; + struct libnet_CreateUser r; char *user_name; /* command line argument preparation */ @@ -50,14 +50,14 @@ static int net_user_add(struct net_context *ctx, int argc, const char **argv) lnet_ctx->cred = ctx->credentials; /* calling CreateUser function */ - r.generic.level = LIBNET_CREATE_USER_GENERIC; - r.generic.in.user_name = user_name; - r.generic.in.domain_name = cli_credentials_get_domain(lnet_ctx->cred); + r.level = LIBNET_CREATE_USER_GENERIC; + r.in.user_name = user_name; + r.in.domain_name = cli_credentials_get_domain(lnet_ctx->cred); status = libnet_CreateUser(lnet_ctx, ctx->mem_ctx, &r); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("Failed to add user account: %s\n", - r.generic.out.error_string)); + r.out.error_string)); return -1; } -- cgit