summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2005-06-07 23:26:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:48 -0500
commit9bbfe84cb9a405e710a174b0ddac273d154fa861 (patch)
tree4677c476ee9944f43898d409158448e211b98ef3 /source4/utils
parent4ce638313aa79117a97ff402b14a94c3d75cccd1 (diff)
downloadsamba-9bbfe84cb9a405e710a174b0ddac273d154fa861.tar.gz
samba-9bbfe84cb9a405e710a174b0ddac273d154fa861.tar.bz2
samba-9bbfe84cb9a405e710a174b0ddac273d154fa861.zip
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)
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/net/net_user.c10
1 files changed, 5 insertions, 5 deletions
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;
}