r7249: Cope with struct member rename
authorJelmer Vernooij <jelmer@samba.org>
Fri, 3 Jun 2005 21:30:07 +0000 (21:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:31 +0000 (13:17 -0500)
(This used to be commit e7549f33f5fb06d8b2a8f31745545cc7b9c8d4f9)

source4/utils/net/net_join.c
source4/utils/net/net_password.c
source4/utils/net/net_time.c
source4/utils/net/net_user.c
source4/utils/net/net_vampire.c

index 212b8270ff8e29f8e2ecb8273acf16c04b921404..717a9364a5b97c0ddedf5c159a559436f63d8ab2 100644 (file)
@@ -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;
index 08660fe2a0f5feee572955a0b0edcf2b91dd53e0..68fe9223a121424c0b3cdf27e79655f0d5a83a5c 100644 (file)
@@ -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;
index a89f80417c937fe413a6c3fbfb85d84d803fe5a3..507cfd5f6d6f709c04a4bcb8e1126785b97ac5ed 100644 (file)
@@ -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;
index 40e821bf83568659160cd4764fdf1624f9ced602..690b393e50882964e3a2537a772fd033cdf8d12b 100644 (file)
@@ -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)) {
index df2d84746b52e054c462c14ea349faaceef4a976..5a17544e82ec8519c1a1791759441454b5340807 100644 (file)
@@ -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;