r5917: First step in using the new cli_credentials structure. This patch
[bbaumbach/samba-autobuild/.git] / source4 / utils / net / net_time.c
index ce7db4ab5c08462e6f36ddb79fb2de119e06d72a..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;
@@ -78,9 +78,3 @@ int net_time_usage(struct net_context *ctx, int argc, const char **argv)
        d_printf("net time <server> [options]\n");
        return 0;       
 }
-
-int net_time_help(struct net_context *ctx, int argc, const char **argv)
-{
-       d_printf("Displays remote server's time.\n");
-       return 0;       
-}