summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-06-03 21:30:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:31 -0500
commit0a40093ef39a46b9df82d6d0486b70b354d9dde5 (patch)
tree3bc2b0eef39e01acf539df7599ecc60fa260d64d
parent77c3d463c88af9f41f5f76446d380c80262ce712 (diff)
downloadsamba-0a40093ef39a46b9df82d6d0486b70b354d9dde5.tar.gz
samba-0a40093ef39a46b9df82d6d0486b70b354d9dde5.tar.bz2
samba-0a40093ef39a46b9df82d6d0486b70b354d9dde5.zip
r7249: Cope with struct member rename
(This used to be commit e7549f33f5fb06d8b2a8f31745545cc7b9c8d4f9)
-rw-r--r--source4/utils/net/net_join.c2
-rw-r--r--source4/utils/net/net_password.c4
-rw-r--r--source4/utils/net/net_time.c2
-rw-r--r--source4/utils/net/net_user.c4
-rw-r--r--source4/utils/net/net_vampire.c2
5 files changed, 7 insertions, 7 deletions
diff --git a/source4/utils/net/net_join.c b/source4/utils/net/net_join.c
index 212b8270ff..717a9364a5 100644
--- a/source4/utils/net/net_join.c
+++ b/source4/utils/net/net_join.c
@@ -61,7 +61,7 @@ int net_join(struct net_context *ctx, int argc, const char **argv)
if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_JOIN_GENERIC;
diff --git a/source4/utils/net/net_password.c b/source4/utils/net/net_password.c
index 08660fe2a0..68fe9223a1 100644
--- a/source4/utils/net/net_password.c
+++ b/source4/utils/net/net_password.c
@@ -57,7 +57,7 @@ static int net_password_change(struct net_context *ctx, int argc, const char **a
if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_CHANGE_PASSWORD_GENERIC;
@@ -132,7 +132,7 @@ static int net_password_set(struct net_context *ctx, int argc, const char **argv
if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_SET_PASSWORD_GENERIC;
diff --git a/source4/utils/net/net_time.c b/source4/utils/net/net_time.c
index a89f80417c..507cfd5f6d 100644
--- a/source4/utils/net/net_time.c
+++ b/source4/utils/net/net_time.c
@@ -47,7 +47,7 @@ int net_time(struct net_context *ctx, int argc, const char **argv)
if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare to get the time */
r.generic.level = LIBNET_REMOTE_TOD_GENERIC;
diff --git a/source4/utils/net/net_user.c b/source4/utils/net/net_user.c
index 40e821bf83..690b393e50 100644
--- a/source4/utils/net/net_user.c
+++ b/source4/utils/net/net_user.c
@@ -47,12 +47,12 @@ static int net_user_add(struct net_context *ctx, int argc, const char **argv)
lnet_ctx = libnet_context_init();
if (!lnet_ctx) return -1;
- lnet_ctx->credentials = ctx->credentials;
+ 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->credentials);
+ r.generic.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)) {
diff --git a/source4/utils/net/net_vampire.c b/source4/utils/net/net_vampire.c
index df2d84746b..5a17544e82 100644
--- a/source4/utils/net/net_vampire.c
+++ b/source4/utils/net/net_vampire.c
@@ -35,7 +35,7 @@ int net_samdump(struct net_context *ctx, int argc, const char **argv)
if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_SAMDUMP_GENERIC;