r5917: First step in using the new cli_credentials structure. This patch
[bbaumbach/samba-autobuild/.git] / source4 / utils / net / net_time.c
index 5f318ac4ea5beacbf81523f01d46bb3c31b11522..df3b52a4abf9aa2a67db862de5043f6afc78aa18 100644 (file)
@@ -47,9 +47,9 @@ int net_time(struct net_context *ctx, int argc, const char **argv)
        if (!libnetctx) {
                return -1;      
        }
-       libnetctx->user.account_name    = ctx->user.account_name;
-       libnetctx->user.domain_name     = ctx->user.domain_name;
-       libnetctx->user.password        = ctx->user.password;
+       libnetctx->user.account_name= cli_credentials_get_username(ctx->credentials);
+       libnetctx->user.domain_name     = cli_credentials_get_domain(ctx->credentials);
+       libnetctx->user.password        = cli_credentials_get_password(ctx->credentials);
 
        /* prepare to get the time */
        r.generic.level                 = LIBNET_REMOTE_TOD_GENERIC;