r13350: Implement rpccli_samr_set_domain_info. Weird that it was not around :-)
[kai/samba.git] / source3 / utils / net_rpc_shell.c
index 2e1f65fe6c4104237c3e6a9beaa1fe604c8ac568..0e17cd6843d689b0961115f3069d0b87529ea985 100644 (file)
@@ -233,6 +233,9 @@ int net_rpc_shell(int argc, const char **argv)
                }
 
                ret = poptParseArgvString(line, &argc, &argv);
+               if (ret == POPT_ERROR_NOARG) {
+                       continue;
+               }
                if (ret != 0) {
                        d_fprintf(stderr, "cmdline invalid: %s\n",
                                  poptStrerror(ret));
@@ -252,7 +255,7 @@ int net_rpc_shell(int argc, const char **argv)
        return 0;
 }
 
-static struct rpc_sh_cmd sh_cmds[5] = {
+static struct rpc_sh_cmd sh_cmds[6] = {
 
        { "info", NULL, PI_SAMR, rpc_sh_info,
          "Print information about the domain connected to" },
@@ -266,5 +269,8 @@ static struct rpc_sh_cmd sh_cmds[5] = {
        { "user", net_rpc_user_cmds, 0, NULL,
          "List/Add/Remove user info" },
 
+       { "account", net_rpc_acct_cmds, 0, NULL,
+         "Show/Change account policy settings" },
+
        { NULL, NULL, 0, NULL, NULL }
 };